Revert "Switch to Java 21"

This reverts commit 80c1a6d2af.
This commit is contained in:
ahatius 2023-12-04 19:24:27 +01:00
parent 347e90000e
commit 5414a18081
9 changed files with 11 additions and 26 deletions

View file

@ -9,12 +9,8 @@ plugins {
version = "0.12.7"
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
application {
@ -30,7 +26,7 @@ graalvmNative {
if (System.getenv("GRAALVM_HOME") == null) {
toolchainDetection.set(true)
javaLauncher.set(javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(21))
languageVersion.set(JavaLanguageVersion.of(17))
})
} else {
toolchainDetection.set(false)