From 648d4dd49548ac5af702423d7a073be0d446aaed Mon Sep 17 00:00:00 2001 From: Omico Date: Sun, 8 Dec 2024 19:21:29 -0800 Subject: [PATCH] Raise the Kotlin language version to match the minimal Gradle version --- gradle-plugins/build.gradle.kts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gradle-plugins/build.gradle.kts b/gradle-plugins/build.gradle.kts index fc57515fbbd..5c6c19a219f 100644 --- a/gradle-plugins/build.gradle.kts +++ b/gradle-plugins/build.gradle.kts @@ -34,8 +34,10 @@ subprojects { compilerOptions { // must be set to a language version of the kotlin compiler & runtime, // which is bundled to the oldest supported Gradle - languageVersion.set(KotlinVersion.KOTLIN_1_5) - apiVersion.set(KotlinVersion.KOTLIN_1_5) + // Current oldest-supported Gradle is 8.0, + // follow the https://docs.gradle.org/current/userguide/compatibility.html#kotlin + languageVersion.set(KotlinVersion.KOTLIN_1_8) + apiVersion.set(KotlinVersion.KOTLIN_1_8) jvmTarget.set(JvmTarget.JVM_11) } }