-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathbuild.gradle
111 lines (90 loc) · 2.16 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id "java"
id "application"
id "eclipse"
id "project-report"
id "jacoco"
id "pmd"
}
java {
sourceCompatibility = JavaVersion.toVersion(11)
targetCompatibility = JavaVersion.toVersion(11)
}
repositories {
mavenCentral()
}
dependencies {
// Everything in src/main (production code).
// implementation ...
// Everything in src/test (test code)
testImplementation "org.junit.jupiter:junit-jupiter:5.8.2"
testImplementation "org.junit.jupiter:junit-jupiter-params:5.8.2"
testImplementation "org.hamcrest:hamcrest-library:2.2"
}
jar {
archiveBaseName = "Storage"
manifest {
attributes(
"Main-Class": "Storage"
)
}
}
run {
mainClass = "Storage"
args = [
"src/main/resources/itemList-00.txt",
"src/main/resources/inventoryList-00.txt"
];
}
application {
mainClass = "polyhedra.CreatePolyhedra"
}
// Apply common settings for both test (unit test) and integration test tasks
tasks.withType(Test) {
useJUnitPlatform()
reports {
html.required = true
}
ignoreFailures = true
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
test {
finalizedBy jacocoTestReport
}
//------------------------------------------------------------------------------
// Documentation Tool(s)
//------------------------------------------------------------------------------
javadoc {
failOnError false
}
//------------------------------------------------------------------------------
// Analysis Tool(s)
//------------------------------------------------------------------------------
jacoco {
toolVersion = "0.8.11"
}
jacocoTestReport {
reports {
html.required = true
xml.required = true
csv.required = true
}
}
pmd {
toolVersion = "6.21.0"
ignoreFailures = true
ruleSets = [
"category/java/bestpractices.xml",
"category/java/codestyle.xml",
"category/java/design.xml",
"category/java/errorprone.xml",
"category/java/performance.xml"
]
}