Skip to content

Commit add0dab

Browse files
committed
Migrate from findbugs to spotbugs
**Auto-cherry-pick to `3.0.x`**
1 parent 456a59b commit add0dab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ plugins {
2424
id 'io.spring.dependency-management' version '1.1.4' apply false
2525
id 'org.antora' version '1.0.0'
2626
id 'io.spring.antora.generate-antora-yml' version '0.0.1'
27+
id 'com.github.spotbugs' version '6.0.7'
2728
}
2829

2930
description = 'Spring AMQP'
@@ -49,7 +50,6 @@ ext {
4950
commonsCompressVersion = '1.20'
5051
commonsHttpClientVersion = '5.2.3'
5152
commonsPoolVersion = '2.12.0'
52-
googleJsr305Version = '3.0.2'
5353
hamcrestVersion = '2.2'
5454
hibernateValidationVersion = '8.0.1.Final'
5555
jacksonBomVersion = '2.15.3'
@@ -202,7 +202,10 @@ configure(javaProjects) { subproject ->
202202

203203
// dependencies that are common across all java projects
204204
dependencies {
205-
compileOnly "com.google.code.findbugs:jsr305:$googleJsr305Version"
205+
def spotbugsAnnotations = "com.github.spotbugs:spotbugs-annotations:${spotbugs.toolVersion.get()}"
206+
compileOnly spotbugsAnnotations
207+
testCompileOnly spotbugsAnnotations
208+
206209
testImplementation 'org.apache.logging.log4j:log4j-core'
207210
testImplementation "org.hamcrest:hamcrest-core:$hamcrestVersion"
208211
testImplementation ("org.mockito:mockito-core:$mockitoVersion") {
@@ -224,7 +227,6 @@ configure(javaProjects) { subproject ->
224227
// To avoid compiler warnings about @API annotations in JUnit code
225228
testCompileOnly 'org.apiguardian:apiguardian-api:1.0.0'
226229

227-
testCompileOnly "com.google.code.findbugs:jsr305:$googleJsr305Version"
228230
testImplementation 'org.jetbrains.kotlin:kotlin-reflect'
229231
testImplementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
230232

0 commit comments

Comments
 (0)