Skip to content

Commit

Permalink
upgrade to gradle 6.8.2
Browse files Browse the repository at this point in the history
findbugs -> spotbugs
  • Loading branch information
dnault committed Feb 20, 2021
1 parent 5b9adc8 commit 7d2b49a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
15 changes: 10 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ buildscript {

plugins {
id "com.jfrog.bintray" version "1.3.1"
id "com.github.spotbugs" version "4.6.1"
}

apply plugin: 'org.asciidoctor.convert'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'findbugs'
apply plugin: 'maven-publish'
apply plugin: 'checkstyle'

Expand Down Expand Up @@ -142,14 +142,19 @@ checkstyle {
toolVersion = "6.16.1"
}

findbugs {
spotbugs {
ignoreFailures = true

excludeFilter = file("config/findbugs/findbugs-exclude.xml")
}

tasks.withType(FindBugs) {
spotbugsMain {
reports {
xml.enabled = false
html.enabled = true
html {
enabled = true
destination = file("$buildDir/reports/spotbugs/main/spotbugs.html")
stylesheet = 'fancy-hist.xsl'
}
}
}

Expand Down
6 changes: 5 additions & 1 deletion config/findbugs/findbugs-exclude.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<FindBugsFilter>
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter
xmlns="https://github.com/spotbugs/filter/3.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
<Match>
<Class name="com.github.therapi.core.interceptor.SimpleMethodInvocation"/>
<Bug pattern="EI_EXPOSE_REP"/>
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip

0 comments on commit 7d2b49a

Please sign in to comment.