-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
44 lines (35 loc) · 1.08 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
plugins {
id 'java'
id 'idea' // optional (to generate IntelliJ IDEA project files)
id 'eclipse' // optional (to generate Eclipse project files)
id 'jacoco'
id "org.sonarqube" version "2.7"
}
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenCentral()
}
dependencies {
def junitJupiterVersion = '5.4.0'
// JUnit Jupiter API and TestEngine implementation
testCompile("org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}")
testRuntime("org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}")
// Jacoco unit test coverage
testCompile group: 'org.jacoco', name: 'org.jacoco.core', version: '0.8.3'
testCompile group: 'org.jacoco', name: 'org.jacoco.report', version: '0.8.3'
}
test {
useJUnitPlatform()
jacoco {
destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
classDumpDir = file("$buildDir/jacoco/classpathdumps")
}
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}