Skip to content

Commit c8ce98c

Browse files
committed
Migrate from findbugs to spotbugs
**Auto-cherry-pick to 6.1.x`**
1 parent efa9646 commit c8ce98c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ plugins {
2222
id 'org.jetbrains.dokka' version "$kotlinVersion"
2323
id 'org.antora' version '1.0.0'
2424
id 'io.spring.antora.generate-antora-yml' version '0.0.1'
25+
id 'com.github.spotbugs' version '6.0.7'
2526
}
2627

2728
if (isCI) {
@@ -65,7 +66,6 @@ ext {
6566
curatorVersion = '5.5.0'
6667
debeziumVersion = '2.4.2.Final'
6768
derbyVersion = '10.16.1.1'
68-
findbugsVersion = '3.0.1'
6969
ftpServerVersion = '1.2.0'
7070
graalvmVersion = '23.0.2'
7171
greenmailVersion = '2.1.0-alpha-3'
@@ -256,9 +256,10 @@ configure(javaProjects) { subproject ->
256256
api project(':spring-integration-core')
257257
}
258258

259-
// JSR-305 only used for non-required meta-annotations
260-
compileOnly "com.google.code.findbugs:annotations:$findbugsVersion"
261-
testImplementation "com.google.code.findbugs:annotations:$findbugsVersion"
259+
def spotbugsAnnotations = "com.github.spotbugs:spotbugs-annotations:${spotbugs.toolVersion.get()}"
260+
compileOnly spotbugsAnnotations
261+
testCompileOnly spotbugsAnnotations
262+
262263
testImplementation("org.awaitility:awaitility:$awaitilityVersion") {
263264
exclude group: 'org.hamcrest'
264265
}

0 commit comments

Comments
 (0)