From 9c61edb87fce78b3214cbe50612f4078a57fd755 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Fri, 31 May 2024 13:46:15 +0200 Subject: [PATCH] Use compilerOptions instead of kotlinOptions --- build.gradle.kts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 96a3826..683d0fa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,4 @@ +import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.springframework.boot.gradle.tasks.bundling.BootBuildImage @@ -46,9 +47,9 @@ dependencies { } tasks.withType { - kotlinOptions { - freeCompilerArgs += "-Xjsr305=strict" - jvmTarget = "17" + compilerOptions { + freeCompilerArgs.add("-Xjsr305=strict") + jvmTarget.set(JvmTarget.JVM_17) } }