Skip to content

Commit

Permalink
Workaround transitive logging classloader problem by constraining the…
Browse files Browse the repository at this point in the history
… dependency to a newer fixed version - #501
  • Loading branch information
arturbosch committed Dec 19, 2023
1 parent bbfd172 commit 9f23421
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ plugins {
}

dependencies {
constraints {
runtimeOnly(libs.slf4j.api) {
because("transitive ktlint logging dependency (2.0.3) does not use the module classloader in ServiceLoader")
}
}

implementation(libs.detekt.api)
implementation(libs.detekt.tooling)

Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ detektIJ = "2.2.0"
assertj = "3.24.2"
junit5 = "5.10.0"
junit5Platform = "1.10.0"
slfApi = "2.0.9"

[libraries]
detekt-core = { group = "io.gitlab.arturbosch.detekt", name = "detekt-core", version.ref = "detekt" }
Expand All @@ -16,6 +17,7 @@ detekt-testUtils = { group = "io.gitlab.arturbosch.detekt", name = "detekt-test-
assertj-core = { group = "org.assertj", name = "assertj-core", version.ref = "assertj" }
junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter", version.ref = "junit5" }
junit-platform = { group = "org.junit.platform", name = "junit-platform-launcher", version.ref = "junit5Platform" }
slf4j-Api = { module = "org.slf4j:slf4j-api", version.ref = "slfApi"}

[plugins]
kotlin-jvm = "org.jetbrains.kotlin.jvm:1.9.20"
Expand Down

0 comments on commit 9f23421

Please sign in to comment.