Skip to content

Commit f6a8d02

Browse files
committed
Set release flag manually instead of using Gradle toolchains
Using the toolchains will lead to Gradle always using a JDK 11 if available, which is not what we want. We want the source code to be Java 11 compatible, and then run the tests on GraalVM 11 and 17.
1 parent d69cda4 commit f6a8d02

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/tck-build-logic/src/main/groovy/org.graalvm.internal.tck.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ repositories {
2020
mavenCentral()
2121
}
2222

23-
java {
24-
toolchain {
25-
languageVersion = JavaLanguageVersion.of(11)
26-
}
23+
tasks.withType(JavaCompile) {
24+
options.release = 11
2725
}
2826

2927
TestUtils.locateRepoDirs(project) // Find relevant directories for the test harness.

0 commit comments

Comments
 (0)