Skip to content
Permalink
Browse files
Upgraded gradle and replaced FindBugs with SpotBugs.
* Upgrading from findbugs (JDK 8 only) to Spotbugs.  FindBugs was abandoned
  years ago and will not be updated.
* Upgraded Gradle to version 6.2.1

Patch by Jon Haddad; Reviewed by Dinesh Joshi for CASSANDRA-15610.
  • Loading branch information
rustyrazorblade committed Mar 3, 2020
1 parent c7d68e7 commit 29317751434cd1b3a129fd4e44628b28c421c6bd
Showing 3 changed files with 20 additions and 7 deletions.
@@ -1,5 +1,6 @@
1.0.0
-----
* Upgraded Gradle and replaced FindBugs with SpotBugs (CASSANDRA-15610)
* Improving local HealthCheckTest reliability (CASSANDRA-15615)
* Read sidecar.yaml from sidecar.config System Property instead of classpath (CASSANDRA-15288)
* Add integration tests task (CASSANDRA-15031)
@@ -1,10 +1,19 @@

buildscript {
dependencies {
// findBugs needs a newer version of Guava in the buildscript.
// otherwise it throws an exception
classpath "com.google.guava:guava:28.2-jre"
}
}

plugins {
id 'java'
id 'application'
id 'idea'
id 'checkstyle'
id 'jacoco'
id 'findbugs'
id "com.github.spotbugs" version "3.0.0"
id 'org.hidetake.swagger.generator' version '2.16.0'
}

@@ -73,6 +82,7 @@ dependencies {
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'ch.qos.logback:logback-core:1.2.3'
compile 'ch.qos.logback:logback-classic:1.2.3'

compile 'com.datastax.cassandra:cassandra-driver-core:3.6+'
compile group: 'com.google.inject', name: 'guice', version: '4.2.2'
compile group: 'org.apache.commons', name: 'commons-configuration2', version: '2.4'
@@ -153,11 +163,13 @@ checkstyle {
configFile file("checkstyle.xml")
}

tasks.withType(FindBugs) {
reports {
xml.enabled false
html.enabled true
}
spotbugs {
toolVersion = '4.0.0'
}

tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports.xml.enabled = false
reports.html.enabled = true
}

// copyDist gets called on every build
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 2931775

Please sign in to comment.