diff --git a/hideout-core/build.gradle.kts b/hideout-core/build.gradle.kts index 5afd46a5..99253d0d 100644 --- a/hideout-core/build.gradle.kts +++ b/hideout-core/build.gradle.kts @@ -260,6 +260,14 @@ detekt { autoCorrect = true } +configurations.matching { it.name == "detekt" }.all { + resolutionStrategy.eachDependency { + if (requested.group == "org.jetbrains.kotlin") { + useVersion(io.gitlab.arturbosch.detekt.getSupportedKotlinVersion()) + } + } +} + tasks.withType { exclude("**/generated/**") doFirst {