From e396449b8c35e1531e04057d56981bef7abe0e98 Mon Sep 17 00:00:00 2001 From: Ilya Fomichev Date: Thu, 6 Jun 2024 14:21:28 +0500 Subject: [PATCH] move compiler options to kotlin dsl block --- app/build.gradle.kts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index cb5f36d7..0d366db8 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -16,7 +16,6 @@ * along with this program. If not, see . */ -import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile import java.util.Properties val packageName = "ru.solrudev.okkeipatcher" @@ -32,6 +31,10 @@ plugins { kotlin { jvmToolchain(17) + + compilerOptions { + freeCompilerArgs.add("-Xjvm-default=all") + } } base { @@ -110,12 +113,6 @@ android { } } -tasks.withType().configureEach { - compilerOptions { - freeCompilerArgs.add("-Xjvm-default=all") - } -} - tasks.withType().configureEach { useJUnitPlatform() }