File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff 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
4838def coverageExclusions = [
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments