mirror of
https://github.com/jlengrand/detekt.git
synced 2026-03-10 08:11:23 +00:00
Add to the documentation how to configure Baseline task with type resolution (#4285)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user