From 04c858e6fd88847a9bc6d271604b347404e5aaf4 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Sat, 23 Mar 2024 09:32:10 -0400 Subject: [PATCH] chore: kotlinOptions is deprecated --- build.gradle | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index c2c3f37c..12b30a7b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile +import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile buildscript { repositories { @@ -26,8 +26,9 @@ tasks.register('clean', Delete) { delete getLayout().getBuildDirectory() } -tasks.withType(KotlinCompile).configureEach { - kotlinOptions { - freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn" + +tasks.withType(KotlinJvmCompile).configureEach { + compilerOptions { + freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn") } }