Skip to content

Commit 4f2e359

Browse files
committed
build(jvm): define java toolchain to be 21
this should force gradle to run all tasks under java 21, so we stop getting partner support requests when they try to build the repo with java17 instead of 21.
1 parent f8fa131 commit 4f2e359

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ tasks.coverageReport {
7171
}
7272

7373
allprojects {
74+
plugins.withType<JavaPlugin>().configureEach {
75+
java {
76+
toolchain {
77+
languageVersion = JavaLanguageVersion.of(21)
78+
}
79+
}
80+
}
81+
7482
tasks.configureEach {
7583
if (this is JavaForkOptions) {
7684
jvmArgs("-XX:ErrorFile=${rootProject.file("build/reports").absolutePath}/hs_err_pid%p.log")

0 commit comments

Comments
 (0)