From 93c9ba0b9705312ca446dac29b8fa3a44e2c8ca5 Mon Sep 17 00:00:00 2001 From: Trong Huu Nguyen Date: Thu, 22 Aug 2024 12:11:41 +0200 Subject: [PATCH] build: replace deprecated compiler options --- build.gradle.kts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 0764d540..51134dd0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,7 @@ + import org.gradle.api.tasks.testing.logging.TestLogEvent -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile +import org.jetbrains.kotlin.gradle.dsl.JvmTarget +import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile val assertjVersion = "3.26.3" val flywayVersion = "10.17.1" @@ -102,9 +104,9 @@ tasks { mergeServiceFiles() } - withType { - kotlinOptions { - jvmTarget = "21" + withType().configureEach { + compilerOptions { + jvmTarget.set(JvmTarget.JVM_21) } }