-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (37 loc) · 958 Bytes
/
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
37
38
39
40
41
42
43
44
45
46
47
ext {
groovyVersion = "3.0.9"
}
allprojects {
apply plugin: "codenarc"
apply plugin: "groovy"
group "info.treyturner"
repositories {
mavenCentral()
}
configurations {
groovy
codenarc.extendsFrom groovy
implementation.extendsFrom groovy
}
dependencies {
groovy "org.codehaus.groovy:groovy-all:$groovyVersion"
}
}
subprojects {
dependencies {
implementation "org.codehaus.groovy:groovy:$groovyVersion"
implementation "org.slf4j:slf4j-api:1.7.32"
implementation "ch.qos.logback:logback-classic:1.2.5"
}
codenarc {
toolVersion = "2.1.0"
configFile = new File("$rootDir/codenarc.groovy")
}
tasks.withType(CodeNarc) {
group = JavaBasePlugin.VERIFICATION_GROUP
}
tasks.register("codenarc") {
group = JavaBasePlugin.VERIFICATION_GROUP
dependsOn = [codenarcMain, codenarcTest]
}
}