Skip to content

Commit

Permalink
Added the JVM Dependency Conflict Detection Gradle plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianbrandt committed Aug 27, 2024
1 parent 41163be commit 891a046
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies {
implementation(platform("org.sdkotlin.platforms:plugins-platform"))

implementation(libs.dependency.analysis.gradle.plugin.dependency)
implementation(libs.jvm.dependency.conflict.resolution.gradle.plugin.dependency)
implementation(libs.kotlin.gradle.plugin.dependency)
implementation(libs.ksp.gradle.plugin.dependency)
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
// https://github.com/gradle/gradle/issues/15383
// alias(libs.plugins.dependency.analysis.gradle.plugin)
id("com.autonomousapps.dependency-analysis")
id("org.gradlex.jvm-dependency-conflict-resolution")
}

val javaTargetVersion: String = JavaVersion.VERSION_21.toString()
Expand Down
11 changes: 10 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ dependency-analysis-gradle-plugin = "1.33.0"
equalsverifier = "3.16.2"
jetbrains-annotations = "24.1.0"
junit = "5.11.0"
jvm-dependency-conflict-resolution = "2.1.2"
koin = "3.5.6"
kotest = "5.9.1"
kotlin = "2.0.10" # Must match KSP version below.
kotlin = "2.0.10" # Must match KSP version below.
kotlinpoet = "1.18.1"
kotlinx-coroutines = "1.8.1"
kotlinx-dl = "0.5.2"
Expand Down Expand Up @@ -56,6 +57,10 @@ version.ref = "junit"
[libraries.junit-params]
module = "org.junit.jupiter:junit-jupiter-params"

[libraries.jvm-dependency-conflict-resolution-gradle-plugin-dependency]
module = "org.gradlex:jvm-dependency-conflict-resolution"
version.ref = "jvm-dependency-conflict-resolution"

[libraries.koin-bom]
module = "io.insert-koin:koin-bom"
version.ref = "koin"
Expand Down Expand Up @@ -202,6 +207,10 @@ mockk-jvm = [
id = "com.autonomousapps.dependency-analysis"
version.ref = "dependency-analysis-gradle-plugin"

[plugins.jvm-dependency-conflict-resolution-gradle-plugin]
id = "org.gradlex.jvm-dependency-conflict-resolution"
version.ref = "jvm-dependency-conflict-resolution"

[plugins.kotlin-gradle-plugin]
id = "org.jetbrains.kotlin.jvm"
version.ref = "kotlin"
Expand Down
2 changes: 1 addition & 1 deletion tdd-in-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies {

testImplementation(libs.kotest.assertions.shared)
testImplementation(libs.kotest.framework.api.jvm)
testImplementation(libs.bundles.mockk.jvm)
testImplementation(libs.mockk)

testRuntimeOnly(platform("org.sdkotlin.platforms:app-platform"))

Expand Down

0 comments on commit 891a046

Please sign in to comment.