Skip to content

Commit

Permalink
Setup codenarc (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
olovy authored Dec 15, 2023
1 parent df91b20 commit 0344a2e
Show file tree
Hide file tree
Showing 2 changed files with 466 additions and 2 deletions.
15 changes: 13 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,23 @@ allprojects {
gradleLint.rules = ['all-dependency']
gradleLint.alwaysRun = false


configurations.all {
// commons-logging and jcl-over-slf4j pulled in by different deps
// resulting in duplicate org.apache.commons.logging.impl.* classes
exclude group:"commons-logging", module:"commons-logging"
exclude group: "commons-logging", module: "commons-logging"

// Not needed since Java 6
exclude group:"stax", module:"stax-api"
exclude group: "stax", module: "stax-api"
}

apply plugin: 'codenarc'
codenarc {
configFile = new File("${project.projectDir}/../codenarc.config")
ignoreFailures = true
dependencies {
codenarc('org.codenarc:CodeNarc:3.3.0')
codenarc('org.codehaus.groovy:groovy-all:3.0.7')
}
}
}
Loading

0 comments on commit 0344a2e

Please sign in to comment.