mirror of https://github.com/usbharu/Hideout.git
chore: detektの実行時だけバージョンを変更するように
This commit is contained in:
parent
07b240961a
commit
00482a0cba
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue