diff --git a/build.gradle.kts b/build.gradle.kts index eb6d2320..3f728938 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -37,7 +37,7 @@ graalvmNative { if (System.getenv("GRAALVM_HOME") == null) { toolchainDetection.set(true) javaLauncher.set(javaToolchains.launcherFor { - languageVersion.set(JavaLanguageVersion.of(22)) + languageVersion.set(JavaLanguageVersion.of(21)) }) } else { toolchainDetection.set(false) diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 08091201..c8f22f7c 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -8,7 +8,7 @@ java { targetCompatibility = JavaVersion.VERSION_21 toolchain { - languageVersion.set(JavaLanguageVersion.of(22)) + languageVersion.set(JavaLanguageVersion.of(21)) } }