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:
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user