Skip to content

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ artifactIdGradle=spotless-plugin-gradle
2121

2222
# Build requirements
2323
VER_JAVA=11
24-
VER_SPOTBUGS=4.7.3
2524
VER_JSR_305=3.0.2
2625

2726
# Dependencies provided by Spotless plugin

gradle/java-setup.gradle

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ tasks.withType(JavaCompile).configureEach {
1414
//////////////
1515
apply plugin: 'com.github.spotbugs'
1616
spotbugs {
17-
toolVersion = VER_SPOTBUGS
1817
ignoreFailures = false // bug free or it doesn't ship!
1918
reportLevel = 'medium' // low|medium|high (low = sensitive to even minor mistakes)
2019
omitVisitors = [
@@ -30,16 +29,10 @@ tasks.withType(com.github.spotbugs.snom.SpotBugsTask).configureEach {
3029
reports {
3130
html.enabled = true
3231
}
33-
notCompatibleWithConfigurationCache("https://github.com/spotbugs/spotbugs-gradle-plugin/issues/670")
3432
}
3533

36-
tasks.named('spotbugsMain') {
37-
reports {
38-
html.enabled = true
39-
}
40-
}
4134
dependencies {
4235
compileOnly 'net.jcip:jcip-annotations:1.0'
43-
compileOnly "com.github.spotbugs:spotbugs-annotations:${VER_SPOTBUGS}"
36+
compileOnly "com.github.spotbugs:spotbugs-annotations:${spotbugs.toolVersion.get()}"
4437
compileOnly "com.google.code.findbugs:jsr305:${VER_JSR_305}"
4538
}

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
// https://github.com/gradle-nexus/publish-plugin/releases
1313
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0' apply false
1414
// https://github.com/spotbugs/spotbugs-gradle-plugin/releases
15-
id 'com.github.spotbugs' version '5.2.1' apply false
15+
id 'com.github.spotbugs' version '5.2.3' apply false
1616
// https://github.com/diffplug/spotless-changelog/blob/main/CHANGELOG.md
1717
id 'com.diffplug.spotless-changelog' version '3.0.2' apply false
1818
// https://github.com/diffplug/goomph/blob/main/CHANGES.md

0 commit comments

Comments
 (0)