Skip to content

Commit ddbc3f5

Browse files
Bump com.github.spotbugs from 5.2.5 to 6.0.7 (#991)
1 parent 243fd9d commit ddbc3f5

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
id 'signing'
66
id 'pmd' // code check, working on source code
77
id 'com.diffplug.spotless' version '6.25.0' //code format
8-
id 'com.github.spotbugs' version '5.2.5' // code check, working on byte code
8+
id 'com.github.spotbugs' version '6.0.7' // code check, working on byte code
99
id 'de.undercouch.download' version '5.5.0'
1010
id 'kr.motd.sphinx' version '2.10.1' // documentation generation
1111
id 'jacoco' // java code coverage plugin

gradle/scripts/spotbugs.gradle

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
// spotBugs is a code check tool, working on byte code
22

3+
// workaround because imports do not work in files that are only included by build.gradle
4+
def classLoader = plugins['com.github.spotbugs'].class.classLoader
5+
def SpotBugsEffort = classLoader.findLoadedClass( 'com.github.spotbugs.snom.Effort' )
6+
def SpotBugsConfidence = classLoader.findLoadedClass( 'com.github.spotbugs.snom.Confidence' )
7+
38
spotbugs{
49
ignoreFailures = true // dont let the build fail on rule violations
5-
effort = 'max'
6-
reportLevel = 'high'
10+
effort = SpotBugsEffort.valueOf("MAX")
11+
reportLevel = SpotBugsConfidence.valueOf("HIGH")
712
}
813

914
spotbugsMain{
1015
reports{
11-
html.enabled = false
12-
xml.enabled = true
16+
html.required.set(false)
17+
xml.required.set(true)
1318
}
1419
}
1520

1621
spotbugsTest{
1722
reports{
18-
html.enabled = false
19-
xml.enabled = true
23+
html.required.set(false)
24+
xml.required.set(true)
2025
}
2126
}

0 commit comments

Comments
 (0)