From 595546bd6938d81cc4c67acc51b10f4b584884f4 Mon Sep 17 00:00:00 2001 From: m1a2st Date: Sat, 25 May 2024 16:22:17 +0800 Subject: [PATCH 1/2] wip --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 80b6ae1fe0e5a..8bcd078f4bb9a 100644 --- a/build.gradle +++ b/build.gradle @@ -743,7 +743,7 @@ subprojects { test.dependsOn('spotbugsMain') tasks.withType(com.github.spotbugs.snom.SpotBugsTask) { - reports { + reports.configure { reports -> // Continue supporting `xmlFindBugsReport` for compatibility xml.enabled(project.hasProperty('xmlSpotBugsReport') || project.hasProperty('xmlFindBugsReport')) html.enabled(!project.hasProperty('xmlSpotBugsReport') && !project.hasProperty('xmlFindBugsReport')) From a696362efbdeee119598c6c28faf7eb1ed6357f6 Mon Sep 17 00:00:00 2001 From: m1a2st Date: Mon, 27 May 2024 18:09:08 +0800 Subject: [PATCH 2/2] wip --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 8bcd078f4bb9a..8d9326d9bc833 100644 --- a/build.gradle +++ b/build.gradle @@ -742,8 +742,8 @@ subprojects { } test.dependsOn('spotbugsMain') - tasks.withType(com.github.spotbugs.snom.SpotBugsTask) { - reports.configure { reports -> + tasks.withType(com.github.spotbugs.snom.SpotBugsTask).configureEach { + reports.configure { // Continue supporting `xmlFindBugsReport` for compatibility xml.enabled(project.hasProperty('xmlSpotBugsReport') || project.hasProperty('xmlFindBugsReport')) html.enabled(!project.hasProperty('xmlSpotBugsReport') && !project.hasProperty('xmlFindBugsReport'))