KamilH
07/15/2022, 12:26 PMdetekt
in my project. In the top level project’s build.gradle.kts
file I have:
apply(plugin = "io.gitlab.arturbosch.detekt")
buildscript {
repositories.applyDefault()
dependencies {
(...)
classpath("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.20.0")
}
}
it synchronizes just fine, but when I try to configure it in the detekt
block I get Unresolved reference: detekt
error. Is there anything I’m missing? I had very similar integration in another project and it worked as expected. The only difference was that I was using groovy instead of kotlin in gradle files there.KamilH
07/15/2022, 12:58 PMtasks.withType<io.gitlab.arturbosch.detekt.Detekt> {
}