-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Bugfix/jdk9 build fixes #1234
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
Bugfix/jdk9 build fixes #1234
Conversation
Java 9 Early Access Build 99, builds successfully when java change to 1.6 from 1.5
Update to newer maven-jar-plugin and maven-javadoc-plugin which depends upon being merged apache/maven-plugins#76 which contain fixes to include a newer version of plexus-archiver which fixes issues around Java 9 changes to java.version.
@nhojpatrick thanks for the fix! We don't want to change the required JDK version on the master branch, because master will be used for JUnit 4.13. I believe we changed the required JDK version on the junit5 branch. Is the bug reproducible there? If so, can you please redo these changes on that branch? |
@kcooney The junit5 branch will most probably never be released since we're working on JUnit 5 (alpha) in the junit-lambda repository. |
@marcphilipp I thought we agreed to review the changes on the junit5 branch? In any case, we shouldn't upgrade the required JDK version in a 4.x release. Luckily, JDK 9 isn't scheduled to be released until September, so we have time. |
Tried the junit-team:junit:junit5 branch but it uses older versions of the plugins than junit-team:junit:master does. Checkout junit-team:junit-lambda:master but don't have gradle installed so will leave it for the time being. |
We haven't done a merge from master to junit5 in a while. I personally see some value in some of the changes in the junit5 branch. Will discuss with the other maintainers off-thread |
Regarding the September comment, it does seam a long way away. But what about other projects that might want to use JUnit and also support Java 9... when Java 9 is generally available. Let me know what is decided regarding junit5 and also Java 9, and when I've free time I'll try and help out. |
@nhojpatrick unless I'm misunderstanding the changes, they only affect the ability to build JUnit; Java 9 users should be able to use the prebuilt 4.12 jars, correct? If so, I think we can wait until we can use non-snapshot jars of these plugins. |
@nhojpatrick javac 1.6 was here discussed several times. JUnit4 will never have it for sure. |
since the jars can still be used, I vote we close this. |
Agreed. |
Linked to #1233
With Java 9, it drops support for Java 5 i.e. -source 1.5 and -target 1.5. So this pull request updates updates the min Java version needed to 1.6.
Two maven plugins, maven-jar-plugin and maven-javadoc-plugin also have issues with Java 9.
Once apache/maven-plugins#76 is merged it will depending on a fixed version of plexus-archiver (see codehaus-plexus/plexus-archiver#12).