Skip to content

Commit

Permalink
Upgrade spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Oct 12, 2020
1 parent ef5c40e commit 5d8a554
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions checksum.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
<trusted-key id='bcf4173966770193' group='org.jetbrains' />
<trusted-key id='b2c4d8b48a99f98a' group='org.jetbrains.kotlin' />
<trusted-key id='66f8e4860bf74983' group='org.jooq' />
<trusted-key id='145d819475314d97' group='org.json' />
<trusted-key id='8db9fa0b0718bbf9' group='org.jsr107.ri' />
<trusted-key id='0315bfb7970a144f' group='org.jvnet.staxex' />
<trusted-key id='f1f286fc184b6bda' group='org.kordamp.gradle' />
Expand Down
8 changes: 5 additions & 3 deletions gradle/codeQuality.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Configurations for code quality analysis
*/
import static org.gradle.util.GradleVersion.version

apply plugin: 'org.kordamp.gradle.jandex'
apply plugin: 'org.kordamp.gradle.stats'
apply plugin: 'com.github.spotbugs'
Expand Down Expand Up @@ -67,18 +69,18 @@ checkstyle {

spotbugs {
effort = 'max'
toolVersion = pluginVersions.spotbugs
excludeFilter = file("${rootDir}/config/spotbugs/exclude.xml")
toolVersion = [version(pluginVersions.spotbugs), version(toolVersion.get())].max().version
}

pmd {
ruleSets = []
toolVersion = pluginVersions.pmd
ruleSetConfig = resources.text.fromFile(file("${rootDir}/config/pmd/rulesSets.xml"))
toolVersion = [version(pluginVersions.pmd), version(toolVersion)].max().version
}

jacoco {
toolVersion = pluginVersions.jacoco
toolVersion = [version(pluginVersions.jacoco), version(toolVersion)].max().version
}

jacocoTestReport {
Expand Down
2 changes: 1 addition & 1 deletion gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ ext {
semanticVersioning: '1.1.0',
shadow: '6.1.0',
sonarqube: '3.0',
spotbugs: '4.0.3',
spotbugs: '4.1.3',
spotbugsPlugin: '4.5.1',
stats: '0.2.2',
versions: '0.33.0',
Expand Down

0 comments on commit 5d8a554

Please sign in to comment.