import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { // this is necessary to avoid the plugins to be loaded multiple times // in each subproject's classloader kotlin("jvm") apply false kotlin("multiplatform") apply false kotlin("android") apply false id("com.android.application") apply false id("com.android.library") apply false id("org.jetbrains.compose") apply false } subprojects { repositories { google() mavenCentral() maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") } plugins.withId("org.jetbrains.kotlin.multiplatform") { tasks.withType { kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn" } } }