Configure JDK 22 compatibility build on CI

This commit does not enable this build right now as testing libraries
are not ready yet for JDK 22.

See gh-31459
This commit is contained in:
Brian Clozel
2023-10-19 13:59:13 +02:00
parent c6b86af78b
commit c73c16f07f
6 changed files with 46 additions and 3 deletions

View File

@@ -54,6 +54,11 @@ plugins.withType(JavaPlugin).configureEach {
javaLauncher = javaToolchains.launcherFor {
languageVersion = testLanguageVersion
}
// Enable Java experimental support in Bytebuddy
// Remove when JDK 22 is supported by Mockito
if (testLanguageVersion == JavaLanguageVersion.of(22)) {
jvmArgs("-Dnet.bytebuddy.experimental=true")
}
}
}
}