@@ -24,6 +24,7 @@ plugins {
24
24
id ' io.spring.dependency-management' version ' 1.1.4' apply false
25
25
id ' org.antora' version ' 1.0.0'
26
26
id ' io.spring.antora.generate-antora-yml' version ' 0.0.1'
27
+ id ' com.github.spotbugs' version ' 6.0.7'
27
28
}
28
29
29
30
description = ' Spring AMQP'
49
50
commonsCompressVersion = ' 1.20'
50
51
commonsHttpClientVersion = ' 5.2.3'
51
52
commonsPoolVersion = ' 2.12.0'
52
- googleJsr305Version = ' 3.0.2'
53
53
hamcrestVersion = ' 2.2'
54
54
hibernateValidationVersion = ' 8.0.1.Final'
55
55
jacksonBomVersion = ' 2.15.3'
@@ -202,7 +202,10 @@ configure(javaProjects) { subproject ->
202
202
203
203
// dependencies that are common across all java projects
204
204
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
+
206
209
testImplementation ' org.apache.logging.log4j:log4j-core'
207
210
testImplementation " org.hamcrest:hamcrest-core:$hamcrestVersion "
208
211
testImplementation (" org.mockito:mockito-core:$mockitoVersion " ) {
@@ -224,7 +227,6 @@ configure(javaProjects) { subproject ->
224
227
// To avoid compiler warnings about @API annotations in JUnit code
225
228
testCompileOnly ' org.apiguardian:apiguardian-api:1.0.0'
226
229
227
- testCompileOnly " com.google.code.findbugs:jsr305:$googleJsr305Version "
228
230
testImplementation ' org.jetbrains.kotlin:kotlin-reflect'
229
231
testImplementation ' org.jetbrains.kotlin:kotlin-stdlib-jdk8'
230
232
0 commit comments