This repository has been archived by the owner on Apr 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (65 loc) · 1.86 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
buildscript {
repositories {
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:1.7.1'
}
}
subprojects {
repositories {
mavenCentral()
}
apply plugin: 'checkstyle'
apply plugin: 'pmd'
apply plugin: 'codenarc'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'com.github.spotbugs'
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.5.0'
compile 'org.spockframework:spock-core:1.3-groovy-2.5'
testCompile 'org.spockframework:spock-spring:1.3-groovy-2.5'
testCompile 'org.hamcrest:hamcrest-core:1.3' // only necessary if Hamcrest matchers are used
testRuntime 'net.bytebuddy:byte-buddy:1.8.21' // allows mocking of classes (in addition to interfaces)
testRuntime 'org.objenesis:objenesis:2.6'
compile 'com.google.guava:guava:27.1-jre'
}
pmd {
toolVersion = '6.13.0'
ruleSetFiles = rootProject.files('config/pmd/ruleset.xml')
ruleSets = []
}
tasks.withType(Pmd) {
reports {
xml.enabled = false
html.enabled = true
consoleOutput = true
}
}
tasks.withType(Checkstyle) {
reports {
xml.enabled = false
html.enabled = true
}
}
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports {
xml.enabled = false
html.enabled = true
}
}
tasks.withType(CodeNarc) {
configFile = rootProject.file('config/codenarc/ruleset.groovy')
}
checkstyle {
maxWarnings = 0
maxErrors = 0
}
spotbugs {
effort = 'max'
reportLevel = 'low'
excludeFilter = rootProject.file('config/spotbugs/exclude.xml')
}
}