Slackbot
09/20/2023, 8:56 AMPhilip W
09/20/2023, 11:37 AMSimon Kågedal Reimer
09/20/2023, 4:31 PMCurrently, you cannot run Gradle on Java 21 because Kotlin lacks support for JDK 21.Do you know what the most relevant issue in Kotlin's YouTrack would be to follow for this?
melix
09/22/2023, 4:03 PMmelix
09/22/2023, 4:04 PMPhilip W
09/22/2023, 4:07 PMmelix
09/22/2023, 4:08 PMbuildSrc/build.gradle.kts
, use:
tasks.withType<KotlinJvmCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
}
}
tasks.withType<JavaCompile>().configureEach {
targetCompatibility = "17"
}
so your Kotlin build scripts compile with target 17, then you can still use 21 to run Gradlemelix
09/22/2023, 4:09 PMmelix
09/22/2023, 4:09 PMPaul Merlin
09/25/2023, 7:43 AMmelix
09/26/2023, 1:53 PM