-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
36 lines (31 loc) · 1.13 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
plugins {
id "nebula.lint" version "20.2.0"
id "com.github.johnrengelman.shadow" version "8.1.1"
}
allprojects {
apply plugin: 'java'
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
// Run manually with "./gradlew autoLintGradle"
// Unused dependency warning cannot always be trusted, always verify ("this dependency is unused and can be removed")
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"
// Not needed since Java 6
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.20')
}
}
}