upgrade Spotbugs plugin from 2.0.1 to latest 4.0.8 (FINERACT-947) (#841)

This commit is contained in:
Michael Vorburger ⛑️
2020-05-08 19:15:19 +01:00
committed by GitHub
parent d2a0493be4
commit 22224709b6
+28 -6
View File
@@ -44,7 +44,7 @@ buildscript {
classpath 'org.apache.openjpa:openjpa:3.1.1' // when upgrading, also change OpenJPA version repeated below in dependencyManagement! 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 'com.radcortez.gradle:openjpa-gradle-plugin:3.1.0'
classpath 'gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.2.2' 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. // Use Guava version 23+ as a workaround to spotbug intergration.
// See: https://github.com/spotbugs/spotbugs-gradle-plugin/issues/128#issuecomment-535864882 // See: https://github.com/spotbugs/spotbugs-gradle-plugin/issues/128#issuecomment-535864882
classpath 'com.google.guava:guava:28.1-jre' classpath 'com.google.guava:guava:28.1-jre'
@@ -523,7 +523,6 @@ test {
} }
} }
import com.github.spotbugs.SpotBugsTask
import groovy.sql.Sql import groovy.sql.Sql
repositories { repositories {
@@ -594,10 +593,33 @@ bootWar {
} }
// To generate an HTML report instead of XML // To generate an HTML report instead of XML
tasks.withType(SpotBugsTask) { spotbugs {
reports.xml.enabled = false reportLevel = 'high'
reports.html.enabled = true }
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 { gitProperties {