Skip to content

Commit

Permalink
minor refactor: remove gradle warning about deprecated Report#destina…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
paulk-asert committed Dec 4, 2024
1 parent 687f59b commit 663f43a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build-logic/src/main/groovy/org.apache.groovy-base.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ tasks.register("checkstyle") {
dependsOn tasks.withType(Checkstyle)
}

tasks.withType(Checkstyle).configureEach {
tasks.withType(Checkstyle).configureEach {chk ->
showViolations = false
ignoreFailures = true
configFile = rootProject.file("config/checkstyle/checkstyle.xml")
Expand All @@ -263,10 +263,9 @@ tasks.withType(Checkstyle).configureEach {
reports {
include('**/*.java')
xml {
destination reportFile.get().asFile
outputLocation = reportFile
}
}
def chk = it
finalizedBy {
// we use a closure here as a workaround, to preserve task configuration laziness
tasks.register("${name}Report", CheckstyleHtmlReport) {
Expand Down

0 comments on commit 663f43a

Please sign in to comment.