Skip to content

Commit

Permalink
Migrate from findbugs to spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Feb 16, 2024
1 parent 89414c0 commit 1339c62
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 @@ -23,6 +23,7 @@ plugins {
id 'io.spring.dependency-management' version '1.1.4' apply false
id 'org.asciidoctor.jvm.pdf' version '3.3.2'
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'com.github.spotbugs' version '6.0.7'
}

description = 'Spring AMQP'
Expand All @@ -45,7 +46,6 @@ ext {
commonsCompressVersion = '1.20'
commonsHttpClientVersion = '5.1.3'
commonsPoolVersion = '2.11.1'
googleJsr305Version = '3.0.2'
hamcrestVersion = '2.2'
hibernateValidationVersion = '8.0.0.Final'
jacksonBomVersion = '2.14.3'
Expand Down Expand Up @@ -166,7 +166,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 @@ -188,7 +191,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 1339c62

Please sign in to comment.