- Use Kotlin 2.2.0, KSP 2.2.0-2.0.2, Compose Multiplatform 1.8.2 to match transitive dependencies compiled with Kotlin metadata 2.3.0. - Add root resolutionStrategy force for kotlin-stdlib 2.1.20/2.1.20 variants to keep runtime consistent while compiler reads 2.3.0 metadata. - Baseline ':app:assembleOssDebug' now passes, APK ~80 MB.
42 lines
1.3 KiB
Kotlin
42 lines
1.3 KiB
Kotlin
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
plugins {
|
|
alias(libs.plugins.android.application) apply false
|
|
alias(libs.plugins.android.library) apply false
|
|
alias(libs.plugins.kotlin.android) apply false
|
|
alias(libs.plugins.kotlin.multiplatform) apply false
|
|
alias(libs.plugins.kotlin.compose) apply false
|
|
alias(libs.plugins.compose.multiplatform) apply false
|
|
alias(libs.plugins.kover) apply false
|
|
}
|
|
|
|
val test by tasks.registering {
|
|
group = "verification"
|
|
description = "Runs available unit tests for the included projects."
|
|
}
|
|
|
|
allprojects {
|
|
configurations.all {
|
|
resolutionStrategy {
|
|
force("org.jetbrains.kotlin:kotlin-stdlib:2.1.20")
|
|
force("org.jetbrains.kotlin:kotlin-stdlib-common:2.1.20")
|
|
force("org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.1.20")
|
|
force("org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.1.20")
|
|
}
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
val rootTest = rootProject.tasks.named("test")
|
|
tasks.matching {
|
|
it.name == "allTests" ||
|
|
it.name == "desktopTest" ||
|
|
it.name.endsWith("DebugUnitTest")
|
|
}.configureEach {
|
|
rootTest.configure {
|
|
dependsOn(this@configureEach)
|
|
}
|
|
}
|
|
tasks.withType<Test>().configureEach {
|
|
maxHeapSize = "4g"
|
|
}
|
|
}
|