From edad7e2496f31c2466f777eb356350ef36494021 Mon Sep 17 00:00:00 2001 From: Joanne Wang Date: Wed, 30 Oct 2024 15:19:28 -0700 Subject: [PATCH 1/2] test Signed-off-by: Joanne Wang --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index 52a8b5e94..78c7c5e11 100644 --- a/build.gradle +++ b/build.gradle @@ -92,6 +92,12 @@ allprojects { } plugins.withId('org.jetbrains.kotlin.jvm') { compileKotlin.kotlinOptions.jvmTarget = compileTestKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_21 + compileJava.sourceCompatibility = JavaVersion.VERSION_21 + compileJava.targetCompatibility = JavaVersion.VERSION_21 + compileTestJava.sourceCompatibility = JavaVersion.VERSION_21 + compileTestJava.targetCompatibility = JavaVersion.VERSION_21 + compileKotlin.kotlinOptions.jvmTarget = "21" + compileTestKotlin.kotlinOptions.jvmTarget = "21" compileKotlin.dependsOn ktlint } tasks.withType(AbstractArchiveTask).configureEach { From ac223f46e91664aaa6a3df8fbe7ed29e2910f4b3 Mon Sep 17 00:00:00 2001 From: Joanne Wang Date: Wed, 30 Oct 2024 15:30:21 -0700 Subject: [PATCH 2/2] remove duplicate Signed-off-by: Joanne Wang --- build.gradle | 1 - 1 file changed, 1 deletion(-) diff --git a/build.gradle b/build.gradle index 78c7c5e11..08b205ad1 100644 --- a/build.gradle +++ b/build.gradle @@ -91,7 +91,6 @@ allprojects { targetCompatibility = JavaVersion.VERSION_21 } plugins.withId('org.jetbrains.kotlin.jvm') { - compileKotlin.kotlinOptions.jvmTarget = compileTestKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_21 compileJava.sourceCompatibility = JavaVersion.VERSION_21 compileJava.targetCompatibility = JavaVersion.VERSION_21 compileTestJava.sourceCompatibility = JavaVersion.VERSION_21