Skip to content

Commit

Permalink
Merge pull request apache#12387: Upgrade spotbugs from 3.1.12 to 4.0.…
Browse files Browse the repository at this point in the history
…6, spotbugs gradle plugin from 2.0.0 to 3.0.0
  • Loading branch information
kennknowles authored Jul 31, 2020
2 parents 63705b0 + fa96a39 commit 835805d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.github.jengelman.gradle.plugins:shadow:4.0.3'
compile 'gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:2.0.0' // Enable spotbugs
compile 'com.github.spotbugs:spotbugs-gradle-plugin:3.0.0' // Enable spotbugs

runtime "net.ltgt.gradle:gradle-apt-plugin:0.20" // Enable a Java annotation processor
runtime "com.google.protobuf:protobuf-gradle-plugin:0.8.5" // Enable proto code generation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ class BeamModulePlugin implements Plugin<Project> {
def protobuf_version = "3.11.1"
def quickcheck_version = "0.8"
def spark_version = "2.4.6"
def spotbugs_version = "4.0.6"

// A map of maps containing common libraries used per language. To use:
// dependencies {
Expand Down Expand Up @@ -811,7 +812,7 @@ class BeamModulePlugin implements Plugin<Project> {
// sdks/java/core's FieldValueTypeInformation needs javax.annotations.Nullable at runtime.
// Therefore, the java core module declares jsr305 dependency (BSD license) as "compile".
// https://github.com/findbugsproject/findbugs/blob/master/findbugs/licenses/LICENSE-jsr305.txt
"com.github.spotbugs:spotbugs-annotations:3.1.12",
"com.github.spotbugs:spotbugs-annotations:$spotbugs_version",
"net.jcip:jcip-annotations:1.0",
// This explicitly adds javax.annotation.Generated (SOURCE retention)
// as a compile time dependency since Java 9+ no longer includes common
Expand Down Expand Up @@ -904,7 +905,7 @@ class BeamModulePlugin implements Plugin<Project> {
if (configuration.enableSpotbugs) {
project.apply plugin: 'com.github.spotbugs'
project.dependencies {
spotbugs "com.github.spotbugs:spotbugs:3.1.12"
spotbugs "com.github.spotbugs:spotbugs:$spotbugs_version"
spotbugs "com.google.auto.value:auto-value:1.7"
compileOnlyAnnotationDeps.each { dep -> spotbugs dep }
}
Expand Down

0 comments on commit 835805d

Please sign in to comment.