Skip to content

Compile and run tests on Java 17 - #104

Merged
iurysza merged 1 commit into
mainfrom
remote-agent/java-17-test-toolchain-f3be
Nov 11, 2026
Merged

iurysza merged 1 commit into
mainfrom
remote-agent/java-17-test-toolchain-f3be

Conversation

@iurysza

@iurysza iurysza commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

🚀 Description

Test compilation and the test worker use a Java 17 toolchain. Main compilation stays on jvmToolchain(8) and Java 1.8, so modulegraph-0.15.0.jar stays class-file major version 52.

JUnit Jupiter, the Jupiter engine, and junit-platform-launcher share 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 --continue succeeded.

  • Published jar: 81 classes, all major version 52. compileKotlin jdkHome was Zulu 8.
  • Test classes: 25 classes, all major version 61. compileTestKotlin jdkHome was Zulu 17.
  • The test worker launched Zulu 17 java. 51 tests, 0 failures.

📦 Types of changes

Build and test-toolchain change. Published plugin bytecode stays Java 8.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

✅ Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
Open in Web Open in Cursor 

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.

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.
@iurysza
iurysza merged commit c0a8952 into main Nov 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant