-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
91 lines (80 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
apply plugin: "java"
apply plugin: 'pmd'
apply plugin: 'findbugs'
apply plugin: 'checkstyle'
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'resources'
}
}
test {
java {
srcDir 'test'
}
}
}
repositories {
jcenter()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
compile 'junit:junit:4.12'
compile 'org.junit.jupiter:junit-jupiter-engine:5.0.0'
compile 'org.junit.jupiter:junit-jupiter-params:5.0.0'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.8.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.8.2'
testCompile 'junit:junit:4.12'
}
pmd {
ignoreFailures = true
toolVersion = '5.5.0'
ruleSets = [
//'java-android',
'java-basic',
'java-braces',
'java-clone',
'java-codesize',
'java-comments',
'java-controversial',
'java-coupling',
'java-design',
'java-empty',
'java-finalizers',
'java-imports',
//'java-j2ee',
'java-javabeans',
'java-junit',
//'java-logging-jakarta-commons',
//'java-logging-java',
'java-migrating',
'java-naming',
'java-optimizations',
'java-strictexception',
'java-strings',
//'java-sunsecure',
'java-typeresolution',
'java-unnecessary',
'java-unusedcode'
]
}
findbugs {
ignoreFailures = true
effort = "max"
reportLevel = "low"
}
checkstyle {
toolVersion = "7.0"
ignoreFailures = true
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}