Skip to content

Commit 33f8395

Browse files
committed
Scope Kotlin version override
1 parent d2bf298 commit 33f8395

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

build.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ allprojects {
3333
}
3434
}
3535

36-
// Ensure Kotlin stdlib versions are consistent across modules
37-
subprojects {
38-
configurations.all {
39-
resolutionStrategy {
40-
force "org.jetbrains.kotlin:kotlin-stdlib:1.8.0"
41-
force "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0"
42-
force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0"
43-
}
44-
}
45-
}
4636

4737
// Define exclusions for JaCoCo coverage
4838
def coverageExclusions = [

main/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,12 @@ dependencies {
9393

9494
androidTestUtil libs.androidxTestOrchestrator
9595
}
96+
97+
// Align Kotlin only for test and androidTest configurations to avoid duplicate classes
98+
configurations.matching { it.name.toLowerCase().contains("test") }.all {
99+
resolutionStrategy {
100+
force "org.jetbrains.kotlin:kotlin-stdlib:1.8.0"
101+
force "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0"
102+
force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0"
103+
}
104+
}

0 commit comments

Comments
 (0)