-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build with JDK-11 in all Travis jobs #3744
Build with JDK-11 in all Travis jobs #3744
Conversation
Can we not consolidate on one method of downloading a JDK in this? |
If one trusts that the URL remains persistent, downloading from a URL seems acceptable to me. I have decided to trust this JDK provider in my projects. Moreover this primitive technique is portable across CI types - it shall work everywhere
I've never used it myself. Neither inside Travis, neither locally (e.g. I cannot test the behavior). The PR is however open for edits from maintainers, if users of
I wanted to avoid modifying the behavior of the Travis scripts. For example by accidentally switching to JDK11 for testing. Downloading a JDK into temporary directory and using it only in |
It wasn't an argument for or against
Understand argument for known JDK. But don't see why there's more chance of accidentally switching from using |
I added a few echos to the build to make it easier to quickly check which JDK is in path. It prints it very early so that it is easily to find. |
I've noticed earlier that NetBeans 13 has broken profiler when running on JDK8. The 933ab50 commit shall fix that. Sorry for not catching it earlier. |
wondering if we can remove the "Compile with JDK-11 and test something on JDK-8 " gh job if this PR makes it in. I also have to agree with Neil, we should not use two different scripts for downloading JDKs if there is a reasonable way to avoid it. The already existing |
f0570f6
to
bcd1f72
Compare
Looks like we are green. I squash the changes, accommodate #3778 and then we can review and merge. |
22e70b7
to
273e70f
Compare
We are green. Given how hard it is to get green status from all our CI builders, I'd rather merge than do some other changes (like remove the "Compile with JDK-11 and test something on JDK-8 " job) which I've forgotten - they can be done any time later. By merging this PR we shall be ready to start using alternative modular implementations. E.g. introduce |
NetBeans are supposed to be developed with JDK-11 yet nobody updated Travis jobs to do so yet. Adding
nbbuild/travis/ant.sh
script which downloads JDK-11. Using it for compilation, but not for testing. Testing continues to be performed on the JDK the job has been setup for.By merging this PR we shall be ready to start using alternative modular implementations. E.g. introduce
org.netbeans.modules.xyz.jdk11
withjavac.target=11
providing better integration with JDK-11 where needed.