-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (55 loc) · 1.36 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
plugins {
id 'java'
id 'maven'
id 'jacoco'
id 'checkstyle'
id "com.github.spotbugs" version "3.0.0"
id 'pmd'
id 'application'
}
group 'de.softwartechnik.book'
version '1.0.0'
repositories {
google()
mavenCentral()
jcenter()
}
java {
withJavadocJar()
withSourcesJar()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
testImplementation 'org.junit.platform:junit-platform-engine:1.5.2'
testImplementation 'org.mockito:mockito-core:3.1.0'
testImplementation 'org.mockito:mockito-junit-jupiter:3.1.0'
testImplementation group: 'org.easymock', name: 'easymock', version: '4.1'
}
application {
mainClassName = "de.softwartechnik.book.gui.BuchHauptprogrammView"
}
test {
useJUnitPlatform()
}
checkstyle {
toolVersion '8.27'
checkstyleTest.enabled = false
}
spotbugs {
ignoreFailures = true
}
pmd {
ignoreFailures = true
}
task codeCoverageReport(type: JacocoReport) {
reports {
xml.enabled = true
html.enabled = true
csv.enabled = true
xml.destination = new File("${buildDir}/reports/jacoco/report.xml")
html.destination = new File("${buildDir}/reports/jacoco/report.html")
csv.destination = new File("${buildDir}/reports/jacoco/report.csv")
}
}