Skip to content

Commit

Permalink
SpotBugs Gradle plugin v6
Browse files Browse the repository at this point in the history
* Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6

https://github.com/spotbugs/spotbugs-gradle-plugin/releases/tag/6.0.0

* Bump SpotBugs to 4.8.2

* Migrate config

* Revert verification metadata changes

---------

Co-authored-by: Goooler <[email protected]>
  • Loading branch information
renovate[bot] and Goooler committed Dec 4, 2023
1 parent aefd096 commit 2286bbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 7 additions & 4 deletions build-logic/src/main/groovy/org.apache.groovy-base.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import groovy.transform.CompileStatic
import org.apache.groovy.gradle.GroovyLibraryExtension
import org.apache.groovy.gradle.JarJarTask
import org.apache.groovy.gradle.ReleaseInfoGenerator
import com.github.spotbugs.snom.Effort
import org.gradle.api.attributes.java.TargetJvmVersion

import com.github.spotbugs.snom.SpotBugsTask
Expand Down Expand Up @@ -123,7 +124,7 @@ configurations {
}

dependencies {
compileOnly providers.provider { "com.github.spotbugs:spotbugs-annotations:${versions.spotbugsAnnotations}" }
compileOnly providers.provider { "com.github.spotbugs:spotbugs-annotations:${versions.spotbugs}" }

codenarc "org.codenarc:CodeNarc:${versions.codenarc}"
codenarc project(":groovy-templates")
Expand Down Expand Up @@ -232,12 +233,14 @@ tasks.withType(CodeNarc).configureEach {
tasks.withType(SpotBugsTask).configureEach {
excludeFilter = rootProject.file("config/spotbugs/exclude.xml")
ignoreFailures = true
effort = 'max'
effort = Effort.valueOf('MAX')
maxHeapSize = '2g'
reports {
xml.enabled = false
xml {
required = false
}
html {
enabled = true
required = true
stylesheet = 'fancy.xsl'
}
}
Expand Down
3 changes: 1 addition & 2 deletions versions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ xmlunit=1.6
xstream=1.4.20
# running with Groovy 5 can be allowed with -Dspock.iKnowWhatImDoing.disableGroovyVersionCheck=true
spock=2.3-groovy-4.0
spotbugs=4.8.1
spotbugsAnnotations=4.8.1
spotbugs=4.8.2
jcipAnnotations=1.0
treelayout=1.0.3
javaxServletApi=4.0.1
Expand Down

0 comments on commit 2286bbf

Please sign in to comment.