From 841f0579574c12cdc36549c4dcb7bc476035ea00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=88=BA=E8=9E=88?= Date: Thu, 27 Aug 2026 18:40:20 +0800 Subject: [PATCH] build: apply Kotlin compiler args to all modules --- build.gradle.kts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index cde04645..cb9bcc72 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,17 +52,17 @@ val androidKmpLibraryPluginId = libs.plugins.android.kotlin.multiplatform.library.get().pluginId subprojects { + tasks.withType>().configureEach { + compilerOptions { + freeCompilerArgs.addAll(Cfg.kotlinCompilerArgs) + } + } tasks.withType().configureEach { compilerOptions { jvmTarget.set(Cfg.kotlinTargetVersion) } } plugins.withType { - tasks.withType>().configureEach { - compilerOptions { - freeCompilerArgs.addAll(Cfg.kotlinCompilerArgs) - } - } extensions.getByType(ApplicationExtension::class.java).apply { compileSdk = Cfg.compileSdk buildToolsVersion = Cfg.buildToolsVersion