-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
95 lines (79 loc) · 1.89 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
91
92
93
94
95
plugins {
id 'java'
id 'checkstyle'
id 'pmd'
id 'findbugs'
id 'net.saliman.cobertura' version "3.0.0"
}
group 'org.ooad_dws4'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testImplementation('org.junit.jupiter:junit-jupiter-api:5.4.2')
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.4.2')
testRuntime('org.slf4j:slf4j-api:1.7.10')
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'
}
test {
reports {
junitXml.enabled = true
html.enabled = false
}
testLogging {
showStandardStreams = true
}
useJUnitPlatform()
}
cobertura {
coverageFormats = ['html', 'xml']
coverageIgnoreTrivial = true
coverageIgnores = ['org.slf4j.Logger.*']
}
coberturaCheck {
}
checkstyle {
ignoreFailures = true
toolVersion = '8.16'
configFile = file('checkstyle.xml')
reportsDir = file("${buildDir}/checkstyle-output")
}
checkstyleMain{
reports {
xml.destination = file("${checkstyle.reportsDir}/checkstyle-report.xml")
}
}
pmd {
ignoreFailures = true
ruleSetFiles = files("ruleset.xml")
reportsDir = file("${buildDir}/pmd-output")
}
pmdMain{
reports {
xml.destination = file("${pmd.reportsDir}/pmd-report.xml")
xml.enabled = true
html.enabled = false
}
}
findbugs{
ignoreFailures = true
reportsDir = file("${buildDir}/findbugs-output")
}
findbugsMain {
reports {
xml.enabled = true
html.enabled = false
xml.destination = file("${findbugs.reportsDir}/findbugs-report.xml")
}
}
jar {
manifest {
attributes "Main-Class": "org.ooad_dws4.Application"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}