From 22224709b6f01796c2747b5428ec1f45ba90c942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vorburger=20=E2=9B=91=EF=B8=8F?= Date: Fri, 8 May 2020 20:15:19 +0200 Subject: [PATCH] upgrade Spotbugs plugin from 2.0.1 to latest 4.0.8 (FINERACT-947) (#841) --- fineract-provider/build.gradle | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/fineract-provider/build.gradle b/fineract-provider/build.gradle index 25ef60bab..5dec06990 100644 --- a/fineract-provider/build.gradle +++ b/fineract-provider/build.gradle @@ -44,7 +44,7 @@ buildscript { classpath 'org.apache.openjpa:openjpa:3.1.1' // when upgrading, also change OpenJPA version repeated below in dependencyManagement! classpath 'com.radcortez.gradle:openjpa-gradle-plugin:3.1.0' classpath 'gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.2.2' - classpath "com.github.spotbugs:spotbugs-gradle-plugin:2.0.1" + classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.0.8" // Use Guava version 23+ as a workaround to spotbug intergration. // See: https://github.com/spotbugs/spotbugs-gradle-plugin/issues/128#issuecomment-535864882 classpath 'com.google.guava:guava:28.1-jre' @@ -523,7 +523,6 @@ test { } } -import com.github.spotbugs.SpotBugsTask import groovy.sql.Sql repositories { @@ -594,10 +593,33 @@ bootWar { } // To generate an HTML report instead of XML -tasks.withType(SpotBugsTask) { - reports.xml.enabled = false - reports.html.enabled = true - reportLevel = "high" +spotbugs { + reportLevel = 'high' +} +// https://github.com/spotbugs/spotbugs-gradle-plugin/issues/242 +spotbugsMain { + reports { + html { + enabled = true + stylesheet = 'fancy-hist.xsl' + } + } +} +spotbugsTest { + reports { + html { + enabled = true + stylesheet = 'fancy-hist.xsl' + } + } +} +spotbugsIntegrationTest { + reports { + html { + enabled = true + stylesheet = 'fancy-hist.xsl' + } + } } gitProperties {