Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclrchtr committed Nov 15, 2023
1 parent 23c1265 commit 1d6f20c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,15 @@ tasks.withType<Detekt>().configureEach {
// Target version of the generated JVM bytecode. It is used for type resolution.
this.jvmTarget = JDK_VERSION
}

afterEvaluate {
// Workaround for https://detekt.dev/docs/gettingstarted/gradle/#gradle-runtime-dependencies
// and https://github.com/detekt/detekt/issues/6428#issuecomment-1779291878
configurations.matching { it.name == "detekt" }.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin") {
useVersion(libs.findVersion("kotlinForDetekt").get().toString())
}
}
}
}
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kotlin-logging = "3.0.5"
lorem = "2.2"
j2html = "1.6.0"
kotlin = "1.8.10"
kotlinForDetekt = "1.9.10"
springBoot = "3.1.5"
dokka = "1.9.10"
detekt = "1.23.3"
Expand Down

0 comments on commit 1d6f20c

Please sign in to comment.