Skip to content

Commit 1f51ef6

Browse files
committed
Java 17
1 parent 8bed203 commit 1f51ef6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

build-support/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,16 @@ allprojects {
8585
}
8686
}
8787
}
88+
89+
// The vanniktech publish plugin 0.36.0+ requires JDK 17. Override the allprojects default (11) for
90+
// the build-support root module which declares it as an implementation dependency.
91+
tasks.withType<JavaCompile>().configureEach {
92+
sourceCompatibility = JavaVersion.VERSION_17.toString()
93+
targetCompatibility = JavaVersion.VERSION_17.toString()
94+
}
95+
96+
tasks.withType<KotlinCompile>().configureEach {
97+
compilerOptions {
98+
jvmTarget.set(JvmTarget.JVM_17)
99+
}
100+
}

0 commit comments

Comments
 (0)