Skip to content

Commit 3695e6b

Browse files
committed
Migrate from findbugs to spotbugs
1 parent 9babe5c commit 3695e6b

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.asciidoctor.jvm.pdf' version '3.3.2'
2424
id 'org.asciidoctor.jvm.convert' version '3.3.2'
25+
id 'com.github.spotbugs' version '6.0.7'
2526
}
2627

2728
if (isCI) {
@@ -59,7 +60,6 @@ ext {
5960
commonsNetVersion = '3.9.0'
6061
curatorVersion = '5.5.0'
6162
derbyVersion = '10.16.1.1'
62-
findbugsVersion = '3.0.1'
6363
ftpServerVersion = '1.2.0'
6464
graalvmVersion = '22.3.4'
6565
greenmailVersion = '2.0.0'
@@ -248,9 +248,10 @@ configure(javaProjects) { subproject ->
248248
}
249249
}
250250

251-
// JSR-305 only used for non-required meta-annotations
252-
compileOnly "com.google.code.findbugs:annotations:$findbugsVersion"
253-
testImplementation "com.google.code.findbugs:annotations:$findbugsVersion"
251+
def spotbugsAnnotations = "com.github.spotbugs:spotbugs-annotations:${spotbugs.toolVersion.get()}"
252+
compileOnly spotbugsAnnotations
253+
testCompileOnly spotbugsAnnotations
254+
254255
testImplementation("org.awaitility:awaitility:$awaitilityVersion") {
255256
exclude group: 'org.hamcrest'
256257
}

0 commit comments

Comments
 (0)