Skip to content

Commit

Permalink
Merge pull request #422 from DroidKaigi/use-resolutionStrategy-for-al…
Browse files Browse the repository at this point in the history
…ign-version

Use resolutionStrategy for align version
  • Loading branch information
takahirom authored Apr 30, 2021
2 parents d12bd3c + 8e0f525 commit 8a8e098
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 30 deletions.
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import io.github.droidkaigi.feeder.Dep
import io.github.droidkaigi.feeder.Versions

buildscript {
ext {
Expand Down Expand Up @@ -31,6 +32,17 @@ buildscript {
classpath Dep.SQLDelight.plugin
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.4'
}

configurations.all {
resolutionStrategy {
eachDependency { details ->
if (details.requested.group == "org.jetbrains.kotlinx" &&
details.requested.name.contains("kotlinx-coroutines")) {
details.useVersion Versions.coroutines
}
}
}
}
}

plugins {
Expand Down
6 changes: 0 additions & 6 deletions data/api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import io.github.droidkaigi.feeder.Dep
import io.github.droidkaigi.feeder.Versions

plugins {
id("kotlin-multiplatform")
Expand Down Expand Up @@ -40,11 +39,6 @@ kotlin {
implementation project(":data:db")

implementation Dep.Ktor.bom
implementation (Dep.Coroutines.core) {
version {
strictly Versions.coroutines
}
}
implementation Dep.Ktor.json
implementation Dep.Ktor.serialization
implementation Dep.Ktor.logging
Expand Down
6 changes: 0 additions & 6 deletions data/db/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import io.github.droidkaigi.feeder.Dep
import io.github.droidkaigi.feeder.Versions

plugins {
id("kotlin-multiplatform")
Expand Down Expand Up @@ -40,11 +39,6 @@ kotlin {
api project(":model")

implementation Dep.Coroutines.bom
implementation (Dep.Coroutines.core) {
version {
strictly Versions.coroutines
}
}

implementation Dep.Serialization.core
implementation Dep.MultiplatformSettings.settings
Expand Down
6 changes: 0 additions & 6 deletions data/repository/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import io.github.droidkaigi.feeder.Dep
import io.github.droidkaigi.feeder.Versions

plugins {
id("kotlin-multiplatform")
Expand Down Expand Up @@ -41,11 +40,6 @@ kotlin {
api project(":data:db")

implementation Dep.Coroutines.bom
implementation (Dep.Coroutines.core) {
version {
strictly Versions.coroutines
}
}
}
commonTest.dependencies {
implementation Dep.KotlinTest.common
Expand Down
7 changes: 1 addition & 6 deletions ios-framework/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
import io.github.droidkaigi.feeder.Dep
import io.github.droidkaigi.feeder.Versions

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -38,11 +37,7 @@ kotlin {
api(project(":data:repository"))

implementation(Dep.Coroutines.bom)
implementation(Dep.Coroutines.core) {
version {
strictly(Versions.coroutines)
}
}
implementation(Dep.Coroutines.core)
}
}
val commonTest by getting {
Expand Down
7 changes: 1 addition & 6 deletions model/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import io.github.droidkaigi.feeder.Dep
import io.github.droidkaigi.feeder.Versions

plugins {
id("com.android.library")
Expand All @@ -15,11 +14,7 @@ kotlin {
android
commonMain.dependencies {
api project.dependencies.platform(Dep.Coroutines.bom)
api (Dep.Coroutines.core) {
version {
strictly Versions.coroutines
}
}
api Dep.Coroutines.core
api Dep.datetime
}
android {}
Expand Down

0 comments on commit 8a8e098

Please sign in to comment.