Add to the documentation how to configure Baseline task with type resolution (#4285)

This commit is contained in:
Brais Gabín
2021-11-18 11:01:57 +01:00
committed by GitHub
parent cef882751c
commit c79d36048a
3 changed files with 15 additions and 2 deletions

View File

@@ -90,12 +90,17 @@ detekt {
tasks.withType(Detekt).configureEach {
jvmTarget = "1.8"
}
tasks.withType(DetektCreateBaselineTask).configureEach {
jvmTarget = "1.8"
}
// or
// Kotlin DSL
tasks.withType<Detekt>().configureEach {
// Target version of the generated JVM bytecode. It is used for type resolution.
jvmTarget = "1.8"
}
tasks.withType<DetektCreateBaselineTask>().configureEach {
jvmTarget = "1.8"
}
```