This is an automated email from the ASF dual-hosted git repository. paulk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 663f43a428dc6fb3372cc3121d20deb4e8777610 Author: Paul King <[email protected]> AuthorDate: Wed Dec 4 22:39:24 2024 +1000 minor refactor: remove gradle warning about deprecated Report#destination --- build-logic/src/main/groovy/org.apache.groovy-base.gradle | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build-logic/src/main/groovy/org.apache.groovy-base.gradle b/build-logic/src/main/groovy/org.apache.groovy-base.gradle index 99b1334e45..e6e41a6b74 100644 --- a/build-logic/src/main/groovy/org.apache.groovy-base.gradle +++ b/build-logic/src/main/groovy/org.apache.groovy-base.gradle @@ -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") @@ -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) {
