Skip to content

Commit

Permalink
chore(deps): violations-gradle-plugin:3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Nov 9, 2024
1 parent c1a3c97 commit 813b1b7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 30 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
plugins {
id "groovy-gradle-plugin"
id "se.bjurr.gradle.conventional-release" version "0.+"
id "se.bjurr.gradle.update-versions" version "0.+"
id "com.diffplug.spotless" version "6.25.0"
}

Expand All @@ -12,8 +13,8 @@ plugins {
*/
dependencies {
implementation "se.bjurr.violations:violations-lib:1.157.3"
implementation "com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.23"
implementation "se.bjurr.violations:violations-gradle-plugin:2.3.0"
implementation 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.26'
implementation 'se.bjurr.violations:violations-gradle-plugin:3.0.1'
implementation 'com.diffplug.spotless:spotless-plugin-gradle:6.25.0'
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#
#Thu Nov 07 16:55:52 CET 2024
#Sat Nov 09 15:07:04 CET 2024
adjustExistingGradlePluginPlugins=true
description=Defines the java convention in my java projects.
group=se.bjurr.gradle
publishGradlePluginToGradlePortal=false
repoType=GRADLE
tags=conventions
version=0.5.4
version=0.5.5
41 changes: 15 additions & 26 deletions src/main/groovy/se.bjurr.gradle.java-convention.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -172,32 +172,21 @@ pmdMain {

if (getEffectiveJavaConventions().useViolations) {
task violations(type: se.bjurr.violations.gradle.plugin.ViolationsTask) {
minSeverity = 'INFO'
detailLevel = 'VERBOSE' // PER_FILE_COMPACT, COMPACT or VERBOSE
maxViolations = getEffectiveJavaConventions().maxViolations
printViolations = true

// Many more formats available, see: https://github.com/tomasbjerre/violations-lib
violations = [
[
"FINDBUGS",
".",
".*/build/reports/findbugs/.*\\.xml\$",
"Findbugs"
],
[
"FINDBUGS",
".",
".*/build/reports/spotbugs/.*\\.xml\$",
"Spotbugs"
],
[
"PMD",
".",
".*/build/reports/pmd/.*\\.xml\$",
"Pmd"
]
]
minSeverity.set(se.bjurr.violations.lib.model.INFO)
detailLevel.set(se.bjurr.violations.git.ViolationsReporterDetailLevel.VERBOSE)
maxViolations.set(getEffectiveJavaConventions().maxViolations)
printViolations.set(true)

violationConfig()
.setFolder(projectDir.path)
.setParser(se.bjurr.violations.lib.reports.Parser.FINDBUGS)
.setPattern(".*/build/reports/spotbugs/.*\\.xml\$")
.setReporter("Spotbugs")
violationConfig()
.setFolder(projectDir.path)
.setParser(se.bjurr.violations.lib.reports.Parser.PMD)
.setPattern(".*/build/reports/pmd/.*\\.xml\$")
.setReporter("PMD")
}

check.finalizedBy violations
Expand Down

0 comments on commit 813b1b7

Please sign in to comment.