chore: detektの実行時だけバージョンを変更するように

This commit is contained in:
usbharu 2024-05-18 14:39:56 +09:00
parent 07b240961a
commit 00482a0cba
1 changed files with 8 additions and 0 deletions

View File

@ -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<io.gitlab.arturbosch.detekt.Detekt> {
exclude("**/generated/**")
doFirst {