From f46bb8ae408b160f17b4aa505d3a1518e1373683 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Tue, 17 Dec 2024 17:30:00 +0200 Subject: [PATCH] Fix gradle deprecation warning (#12907) --- gradle-plugins/build.gradle.kts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gradle-plugins/build.gradle.kts b/gradle-plugins/build.gradle.kts index f7206d9558cf..11bfbeefe88d 100644 --- a/gradle-plugins/build.gradle.kts +++ b/gradle-plugins/build.gradle.kts @@ -1,4 +1,5 @@ -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile +import org.jetbrains.kotlin.gradle.dsl.JvmTarget +import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile import java.time.Duration plugins { @@ -60,9 +61,9 @@ tasks { } } - withType(KotlinCompile::class).configureEach { - kotlinOptions { - jvmTarget = "11" + withType(KotlinJvmCompile::class).configureEach { + compilerOptions { + jvmTarget = JvmTarget.JVM_11 } } }