-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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-9 only #1097
Build with JDK-9 only #1097
Conversation
The JUnit 5 build requires JDK-9 or higher. The JUnit 5 runtime environment needs to be Java 8 or higher. Travis CI now sets "-Xmx" by default.
@@ -126,13 +126,12 @@ allprojects { subproj -> | |||
} | |||
|
|||
tasks.withType(JavaCompile) { | |||
sourceCompatibility = rootProject.sourceCompatibility | |||
targetCompatibility = rootProject.targetCompatibility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep specifying source and target.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
javac
does not allow this:
Execution failed for task ':junit-platform-commons:compileJava'.
> option -source cannot be used together with --release
When added to compilerArgs
via:
// See: https://docs.oracle.com/javase/9/tools/javac.htm#JSWOR627
compileJava.options*.compilerArgs = [
'--release', rootProject.javacRelease,
'-source', rootProject.javacRelease,
'-target', rootProject.javacRelease,
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But our build refers to compileJava.sourceCompatibility
here and there. Like in cloverInstrumentJava
around line 224: source: compileJava.sourceCompatibility) {
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -0,0 +1,10 @@ | |||
build: off |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enables the build.
No kidding.
It disables the automatic search and execution of a "build script thing".
See: https://www.appveyor.com/docs/build-phase/
Ref: https://www.appveyor.com/docs/appveyor-yml/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂️
* Use --release 8 option from JDK 9 javac * Remove matrix and special java options from Travis CI The JUnit 5 build requires JDK-9 or higher. The JUnit 5 runtime environment needs to be Java 8 or higher. Travis CI now sets "-Xmx" by default. * Switch Javadoc step to use JDK 9 * Switch AsciiDoc step to use JDK 9 w/o PDF backend See jruby/jruby#4805 * Fix Clover instrumentation * Add custom AppVeyor script to install JDK-9 * Add JDK9-compatible Javadoc stylesheet * Fix Javadoc @value tag usages
Overview
Remove JDK build matrix on Travis CI and use
--release 8
javac option.The JUnit 5 build requires JDK-9 or higher.
The JUnit 5 runtime environment needs to be Java 8 or higher.
Travis CI now sets "-Xmx" by default.
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@API
annotations