mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-05-18 15:51:38 +00:00
* Update examples to Gradle 7.3.3 Resolves #1654 * Update compose and agp in examples Resolves #1117 * Fix gradle plugins classloading in examples and templates * Make falling balls mpp compatible with examples checker
27 lines
766 B
Kotlin
27 lines
766 B
Kotlin
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<KotlinCompile> {
|
|
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
|
}
|
|
}
|
|
}
|