Skip to content

Commit 6aba30d

Browse files
committed
- adds spotbugs base configuration
1 parent 7303bae commit 6aba30d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ plugins {
1414
id 'maven-publish'
1515
id 'signing'
1616
id 'jacoco'
17+
id 'com.github.spotbugs' version '4.6.0'
1718
}
1819

1920
java {
@@ -32,6 +33,16 @@ jacoco {
3233
toolVersion = "0.8.7-SNAPSHOT" //https://github.com/gradle/gradle/issues/15038
3334
}
3435

36+
spotbugsMain {
37+
reports {
38+
html {
39+
enabled = true
40+
destination = file("$buildDir/reports/spotbugs/main/spotbugs.html")
41+
stylesheet = 'fancy-hist.xsl'
42+
}
43+
}
44+
}
45+
3546
jacocoTestReport {
3647
reports {
3748
xml.enabled true

0 commit comments

Comments
 (0)