add
This commit is contained in:
15
build.gradle
15
build.gradle
@@ -1,5 +1,6 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'jacoco'
|
||||
}
|
||||
|
||||
group = 'hhn.temp.project'
|
||||
@@ -15,6 +16,11 @@ dependencies {
|
||||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||
}
|
||||
|
||||
jacoco {
|
||||
toolVersion = '0.8.13'
|
||||
reportsDirectory.set(layout.buildDirectory.dir('customJacocoReportDir'))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
@@ -30,4 +36,13 @@ sourceSets {
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
finalizedBy jacocoTestReport
|
||||
}
|
||||
jacocoTestReport {
|
||||
dependsOn test
|
||||
reports {
|
||||
xml.required = false
|
||||
csv.required = false
|
||||
html.outputLocation.set(layout.buildDirectory.dir('jacocoHtml'))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user