Skip to content

Bump JDK version requirement in Gradle and CI#2845

Merged
mjameswh merged 3 commits intomasterfrom
javasdk-bump-gha-jdk
Apr 17, 2026
Merged

Bump JDK version requirement in Gradle and CI#2845
mjameswh merged 3 commits intomasterfrom
javasdk-bump-gha-jdk

Conversation

@mjameswh
Copy link
Copy Markdown
Contributor

@mjameswh mjameswh commented Apr 16, 2026

What changed

  • Uniformly use Java 23 for all gradle/tooling execution in both Gradle and GHA workflows.
  • Use gradle's toolchains to ensure runtime tests are run against the correct version of Java.
  • Add a gradle property testJavaVersion that can be used to select the version of Java to use to run tests. For example: ./gradlew test -PtestJavaVersion=11.
  • Remove the com.palantir.git-version gradle plugin. Its features are actually no longer used.

Note

  • We unfortunately can't actually run tests against Java 8 because Mockito 5 requires at least Java 11. Compiling the code with --release 8 still provides a reasonable level of confidence that the code is safe to run in a JRE 8 environment.

@mjameswh mjameswh marked this pull request as ready for review April 16, 2026 23:33
@mjameswh mjameswh requested a review from a team as a code owner April 16, 2026 23:33
@mjameswh mjameswh merged commit b6f4283 into master Apr 17, 2026
18 checks passed
@mjameswh mjameswh deleted the javasdk-bump-gha-jdk branch April 17, 2026 15:41
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.

3 participants