Use Java 21 bytecode for tests when testing against JDK 21
This commit is contained in:
parent
128d201201
commit
60296fb873
|
@ -282,7 +282,7 @@ gradle.ext.baselineJavaVersion = JavaLanguageVersion.of( 11 )
|
||||||
|
|
||||||
// Gradle does bytecode transformation on tests.
|
// Gradle does bytecode transformation on tests.
|
||||||
// You can't use bytecode higher than what Gradle supports, even with toolchains.
|
// You can't use bytecode higher than what Gradle supports, even with toolchains.
|
||||||
def GRADLE_MAX_SUPPORTED_BYTECODE_VERSION = 17
|
def GRADLE_MAX_SUPPORTED_BYTECODE_VERSION = 21
|
||||||
|
|
||||||
// If either 'main.jdk.version' or 'test.jdk.version' is set, enable the toolchain and use the selected jdk.
|
// If either 'main.jdk.version' or 'test.jdk.version' is set, enable the toolchain and use the selected jdk.
|
||||||
// If only one property is set, the other defaults to the baseline Java version (11).
|
// If only one property is set, the other defaults to the baseline Java version (11).
|
||||||
|
|
Loading…
Reference in New Issue