Skip to content

Commit cb1f108

Browse files
committed
chore: remove SpotBugs verifications
SpotBugs is slow, it is problematic, it requires dependency updates, it fails like in spotbugs/spotbugs-gradle-plugin#1508
1 parent 93fe0dd commit cb1f108

File tree

6 files changed

+0
-112
lines changed

6 files changed

+0
-112
lines changed

build-logic/build-parameters/build.gradle.kts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,10 @@ buildParameters {
6262
string("jdkTestImplementation") {
6363
description.set("Vendor-specific virtual machine implementation to use testing JMeter (see https://docs.gradle.org/8.0/userguide/toolchains.html#selecting_toolchains_by_virtual_machine_implementation)")
6464
}
65-
bool("spotbugs") {
66-
defaultValue.set(false)
67-
description.set("Run SpotBugs verifications")
68-
}
6965
bool("sonarqube") {
7066
defaultValue.set(false)
7167
description.set("Report verification results to Sonarqube")
7268
}
73-
bool("ignoreSpotBugsFailures") {
74-
defaultValue.set(false)
75-
description.set("Ignore SpotBugs failures")
76-
}
7769
bool("skipAutostyle") {
7870
defaultValue.set(false)
7971
description.set("Skip AutoStyle verifications")

build-logic/verification/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ dependencies {
2323
api(projects.basics)
2424
api(projects.buildParameters)
2525
api("com.github.autostyle:com.github.autostyle.gradle.plugin:4.0")
26-
api("com.github.spotbugs:com.github.spotbugs.gradle.plugin:6.0.4")
2726
api("com.github.vlsi.ide:com.github.vlsi.ide.gradle.plugin:2.0.0")
2827
api("com.github.vlsi.gradle-extensions:com.github.vlsi.gradle-extensions.gradle.plugin:2.0.0")
2928
api("de.thetaphi.forbiddenapis:de.thetaphi.forbiddenapis.gradle.plugin:3.10")

build-logic/verification/src/main/kotlin/build-logic.sonarqube-aggregate.gradle.kts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* limitations under the License.
1616
*/
1717

18-
import com.github.spotbugs.snom.SpotBugsTask
1918
import jacoco.JacocoAggregateReportSpec
2019

2120
plugins {
@@ -68,26 +67,3 @@ plugins.withId("build-params.jacoco-aggregation") {
6867
}
6968
}
7069
}
71-
72-
subprojects {
73-
plugins.withId("com.github.spotbugs") {
74-
val spotBugTasks = tasks.withType<SpotBugsTask>().matching {
75-
// We don't send spotbugs for test classes
76-
!it.name.endsWith("Test")
77-
}
78-
sonarTask {
79-
dependsOn(spotBugTasks)
80-
}
81-
sonar {
82-
properties {
83-
property(
84-
"sonar.java.spotbugs.reportPaths",
85-
spotBugTasks.asSequence()
86-
.map {
87-
it.reports.named("XML").get().outputLocation.asFile.get()
88-
}
89-
)
90-
}
91-
}
92-
}
93-
}

build-logic/verification/src/main/kotlin/build-logic.spotbugs.gradle.kts

Lines changed: 0 additions & 71 deletions
This file was deleted.

build-logic/verification/src/main/kotlin/build-logic.style.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ plugins.withId("java-base") {
4242
if (buildParameters.enableErrorprone) {
4343
apply(plugin = "build-logic.errorprone")
4444
}
45-
if (buildParameters.spotbugs) {
46-
apply(plugin = "build-logic.spotbugs")
47-
}
4845
if (buildParameters.coverage) {
4946
apply(plugin = "build-logic.jacoco")
5047
}

gradle/verification-metadata.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,6 @@
295295
<sha256 value="dc0e8e782ba0dac5c4d0d8678081c11380a5c793b3c46f2d0f8d242d1733b62b" origin="Generated by Gradle" reason="Artifact is not signed"/>
296296
</artifact>
297297
</component>
298-
<component group="com.github.spotbugs" name="com.github.spotbugs.gradle.plugin" version="6.0.4">
299-
<artifact name="com.github.spotbugs.gradle.plugin-6.0.4.pom">
300-
<sha256 value="f029abeb54aa13d5631ece27f58f2e20039cb28b9ce3b1b314947af5b06d8a65" origin="Generated by Gradle" reason="Artifact is not signed"/>
301-
</artifact>
302-
</component>
303298
<component group="com.github.vlsi.crlf" name="com.github.vlsi.crlf.gradle.plugin" version="2.0.0">
304299
<artifact name="com.github.vlsi.crlf.gradle.plugin-2.0.0.pom">
305300
<sha256 value="fdd676d789d97e249bb312568659343e40bb68ab2cc7bb355e5f925a71a2e67d" origin="Generated by Gradle" reason="Artifact is not signed"/>

0 commit comments

Comments
 (0)