Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.

Commit

Permalink
Added resolution strategy to fix that issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubMosakowski committed Aug 21, 2019
1 parent c73e84b commit 2c8c6d8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.jetbrains.kotlinx:kotlinx-coroutines') {
details.useVersion "$coroutines_version"
details.because 'Different lib versions from different sources.'
}
}
}
}

dependencies {
Expand All @@ -55,7 +63,9 @@ dependencies {
testImplementation 'junit:junit:4.12'
testImplementation "android.arch.core:core-testing:1.1.1"
testImplementation "android.arch.persistence.room:testing:1.1.1"
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.0-RC2'
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

ext {
coroutines_version = "1.3.0-RC2"
}

buildscript {
ext.kotlin_version = '1.3.41'

Expand Down

0 comments on commit 2c8c6d8

Please sign in to comment.