-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
61 lines (45 loc) · 1.02 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
ext.junitJupiterVersion = '5.0.0-M4'
apply plugin: 'java'
//apply plugin: 'org.junit.platform.gradle.plugin'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
version = '1.0-SNAPSHOT'
compileTestJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.compilerArgs += '-parameters'
}
repositories {
if (project.hasProperty("local_repository") || System.getProperty("local_repository") != null) {
mavenLocal()
} else {
mavenCentral()
}
}
dependencies {
testCompileOnly(
'junit:junit:4.12'
)
testImplementation(
'org.junit.jupiter:junit-jupiter-api:5.1.0'
)
testRuntimeOnly(
'org.junit.jupiter:junit-jupiter-engine:5.1.0',
'org.junit.vintage:junit-vintage-engine:5.1.0'
)
}
test {
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
}
useJUnitPlatform()
}
jacoco {
toolVersion = "0.8.10"
}
jacocoTestReport {
reports {
xml.required = true
html.required = false
}
}