import org.jetbrains.kotlin.gradle.dsl.KotlinCompile import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompile group "com.example" version "1.0-SNAPSHOT" allprojects { repositories { google() mavenCentral() maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/") // to test with kotlin dev builds // mavenLocal() } afterEvaluate { tasks.withType().configureEach { kotlinOptions.freeCompilerArgs += listOf( "-Xklib-enable-signature-clash-checks=false", ) } tasks.withType>().configureEach { kotlinOptions.freeCompilerArgs += "-Xpartial-linkage=disable" } //non-depracated? // tasks.withType>() { // compilerOptions { // freeCompilerArgs.add("-Xklib-enable-signature-clash-checks=false") // } // } // // tasks.withType>() { // compilerOptions { // freeCompilerArgs.add("-Xpartial-linkage=disable") // } // } } disableYarnLockMismatchReport() } plugins { kotlin("multiplatform") apply false alias(libs.plugins.composeCompiler).apply(false) } fun Project.disableYarnLockMismatchReport() { plugins.withType { the().apply { yarnLockMismatchReport = org.jetbrains.kotlin.gradle.targets.js.yarn.YarnLockMismatchReport.NONE } } }