Skip to content

Commit c5e8764

Browse files
authored
Force jdk 25 for all gradle tasks (#1126)
1 parent ab76f30 commit c5e8764

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

de.peeeq.wurstscript/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ java {
3434
}
3535
}
3636

37+
def toolchainSvc = extensions.getByType(JavaToolchainService)
38+
def j25Launcher = toolchainSvc.launcherFor(java.toolchain)
39+
40+
tasks.withType(JavaExec).configureEach {
41+
javaLauncher.set(j25Launcher)
42+
}
43+
3744
tasks.withType(JavaCompile).configureEach { options.release = 25 }
3845

3946
jacoco {

0 commit comments

Comments
 (0)