Skip to content

Commit

Permalink
Migrate from findbugs to spotbugs
Browse files Browse the repository at this point in the history
**Auto-cherry-pick to `3.0.x`**
  • Loading branch information
artembilan committed Feb 16, 2024
1 parent 456a59b commit add0dab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ plugins {
id 'io.spring.dependency-management' version '1.1.4' apply false
id 'org.antora' version '1.0.0'
id 'io.spring.antora.generate-antora-yml' version '0.0.1'
id 'com.github.spotbugs' version '6.0.7'
}

description = 'Spring AMQP'
Expand All @@ -49,7 +50,6 @@ ext {
commonsCompressVersion = '1.20'
commonsHttpClientVersion = '5.2.3'
commonsPoolVersion = '2.12.0'
googleJsr305Version = '3.0.2'
hamcrestVersion = '2.2'
hibernateValidationVersion = '8.0.1.Final'
jacksonBomVersion = '2.15.3'
Expand Down Expand Up @@ -202,7 +202,10 @@ configure(javaProjects) { subproject ->

// dependencies that are common across all java projects
dependencies {
compileOnly "com.google.code.findbugs:jsr305:$googleJsr305Version"
def spotbugsAnnotations = "com.github.spotbugs:spotbugs-annotations:${spotbugs.toolVersion.get()}"
compileOnly spotbugsAnnotations
testCompileOnly spotbugsAnnotations

testImplementation 'org.apache.logging.log4j:log4j-core'
testImplementation "org.hamcrest:hamcrest-core:$hamcrestVersion"
testImplementation ("org.mockito:mockito-core:$mockitoVersion") {
Expand All @@ -224,7 +227,6 @@ configure(javaProjects) { subproject ->
// To avoid compiler warnings about @API annotations in JUnit code
testCompileOnly 'org.apiguardian:apiguardian-api:1.0.0'

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

Expand Down

0 comments on commit add0dab

Please sign in to comment.