Using Jacoco snapshot.

This commit is contained in:
Erik C. Thauvin 2021-04-28 20:03:05 -07:00
parent 2b295c0902
commit 9463c8e944

View file

@ -37,6 +37,7 @@ val versions: VersionInfo by extra { VersionInfo }
repositories { repositories {
mavenCentral() mavenCentral()
jcenter() // needed for Dokka jcenter() // needed for Dokka
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
} }
dependencies { dependencies {
@ -89,13 +90,6 @@ tasks {
useTestNG() useTestNG()
} }
withType<JacocoReport> {
reports {
xml.isEnabled = true
html.isEnabled = true
}
}
withType<KotlinCompile>().configureEach { withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8" kotlinOptions.jvmTarget = "1.8"
} }
@ -104,6 +98,18 @@ tasks {
destination = file("$projectDir/pom.xml") destination = file("$projectDir/pom.xml")
} }
jacoco {
toolVersion = "0.8.7-SNAPSHOT"
}
jacocoTestReport {
dependsOn(test)
reports {
xml.isEnabled = true
html.isEnabled = true
}
}
assemble { assemble {
dependsOn(javadocJar) dependsOn(javadocJar)
} }