Repository navigation
Compile and run tests on Java 17 - #104
Merged
Merged
Conversation
Keep main compilation on the Java 8 toolchain so the published jar stays class-file version 52. Compile and run only the tests with a Java 17 toolchain, and align JUnit Jupiter with the Platform launcher at 6.1.3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Description
Test compilation and the test worker use a Java 17 toolchain. Main compilation stays on
jvmToolchain(8)and Java 1.8, somodulegraph-0.15.0.jarstays class-file major version 52.JUnit Jupiter, the Jupiter engine, and
junit-platform-launchershare version 6.1.3. That covers the launcher bump in #99, with Jupiter on the same version.📄 Motivation and Context
JUnit 6 artifacts require Java 17. The Java 8 test classpath cannot resolve them. Gradle 9 also refuses to start on Java 8, so the test worker was already on 17. This compiles the tests on 17 as well, and leaves the published plugin on Java 8.
🧪 How Has This Been Tested?
./gradlew preMerge --continuesucceeded.compileKotlinjdkHomewas Zulu 8.compileTestKotlinjdkHomewas Zulu 17.java. 51 tests, 0 failures.📦 Types of changes
Build and test-toolchain change. Published plugin bytecode stays Java 8.
✅ Checklist
Note
Medium Risk
Major JUnit upgrade and split compile toolchains affect CI and local
check, but the shipped plugin artifact remains Java 8 with no Gradle minimum bump for consumers.Reviewed by Cursor Bugbot for commit aca9e7c. Configure here.