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
parent ffbced83a9
commit 03e2fc9654
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.
// 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 only one property is set, the other defaults to the baseline Java version (11).