File tree Expand file tree Collapse file tree 8 files changed +18
-7
lines changed Expand file tree Collapse file tree 8 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ dependencies {
100100 androidTestImplementation " com.noveogroup.android:android-logger:$android_logger_ver "
101101 androidTestImplementation " com.google.code.gson:gson:$gson_ver "
102102 androidTestImplementation " com.fasterxml.jackson.core:jackson-databind:$jacksonversion "
103- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7 :$kotlin_version "
103+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
104104}
105105
106106
Original file line number Diff line number Diff line change @@ -76,6 +76,17 @@ allprojects {
7676 configurations. all {
7777 // no cache for SNAPSHOT dependency
7878 resolutionStrategy. cacheChangingModulesFor 0 , ' seconds'
79+
80+ // Exclude conflicting kotlin stdlib versions
81+ resolutionStrategy. eachDependency { details ->
82+ if (details. requested. group == ' org.jetbrains.kotlin' ) {
83+ if (details. requested. name == ' kotlin-stdlib-jdk8' ||
84+ details. requested. name == ' kotlin-stdlib-jdk7' ) {
85+ details. useTarget " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
86+ details. because ' Unified kotlin stdlib to avoid conflicts'
87+ }
88+ }
89+ }
7990 }
8091}
8192
Original file line number Diff line number Diff line change @@ -64,5 +64,5 @@ dependencies {
6464 androidTestImplementation " org.mockito:mockito-android:$mockito_ver "
6565 androidTestImplementation " com.noveogroup.android:android-logger:$android_logger_ver "
6666 androidTestImplementation " com.fasterxml.jackson.core:jackson-databind:$jacksonversion "
67- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7 :$kotlin_version "
67+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
6868}
Original file line number Diff line number Diff line change @@ -72,6 +72,6 @@ dependencies {
7272 androidTestImplementation " org.mockito:mockito-android:$mockito_ver "
7373 androidTestImplementation " com.noveogroup.android:android-logger:$android_logger_ver "
7474 androidTestImplementation " com.fasterxml.jackson.core:jackson-databind:$jacksonversion "
75- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7 :$kotlin_version "
75+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
7676}
7777
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ android {
4848dependencies {
4949 api project(' :shared' )
5050 implementation " androidx.annotation:annotation:$annotations_ver "
51- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7 :$kotlin_version "
51+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
5252 implementation " androidx.work:work-runtime:$work_runtime "
5353 // Add SLF4J API for Logger interface
5454 implementation " org.slf4j:slf4j-api:$slf4j_ver "
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ dependencies {
5050 }
5151
5252 implementation " androidx.annotation:annotation:$annotations_ver "
53- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7 :$kotlin_version "
53+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
5454 implementation " androidx.work:work-runtime:$work_runtime "
5555 // the default json parser for java-sdk core-api (app can exclude it to replace with other parsers)
5656 implementation " com.google.code.gson:gson:$gson_ver "
Original file line number Diff line number Diff line change @@ -96,6 +96,6 @@ dependencies {
9696 androidTestImplementation project(' :android-sdk' )
9797 androidTestImplementation project(path : ' :shared' )
9898 androidTestImplementation " com.fasterxml.jackson.core:jackson-databind:$jacksonversion "
99- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7 :$kotlin_version "
99+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
100100}
101101
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ dependencies {
4545 api project(' :shared' )
4646
4747 implementation " androidx.annotation:annotation:$annotations_ver "
48- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7 :$kotlin_version "
48+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
4949
5050 compileOnly " com.noveogroup.android:android-logger:$android_logger_ver "
5151
You can’t perform that action at this time.
0 commit comments