File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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+
38spotbugs {
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
914spotbugsMain {
1015 reports{
11- html. enabled = false
12- xml. enabled = true
16+ html. required . set( false )
17+ xml. required . set( true )
1318 }
1419}
1520
1621spotbugsTest {
1722 reports{
18- html. enabled = false
19- xml. enabled = true
23+ html. required . set( false )
24+ xml. required . set( true )
2025 }
2126}
You can’t perform that action at this time.
0 commit comments