Skip to content

Commit 6646641

Browse files
committed
build: switch to using the lazy providers.gradleProperty
1 parent 710874d commit 6646641

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jacoco {
174174
detekt {
175175
buildUponDefaultConfig = true
176176
config.setFrom(files("detekt.yml"))
177-
autoCorrect = booleanProperty("detektAutoCorrect", default = true)
177+
autoCorrect = project.providers.gradleProperty("detektAutoCorrect").map(String::toBoolean).getOrElse(true)
178178
}
179179

180180
tasks {

buildSrc/src/main/kotlin/io/github/petertrr/ext/Project.ext.kt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)