Use Java 21 bytecode for tests when testing against JDK 21

This commit is contained in:
Yoann Rodière 2023-08-07 15:52:00 +02:00 committed by Christian Beikov
parent 128d201201
commit 60296fb873
1 changed files with 1 additions and 1 deletions

View File

@ -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).