Using Jacoco snapshot.

This commit is contained in:
Erik C. Thauvin 2021-04-28 20:05:15 -07:00
parent 28abc95c5d
commit 3772d523c8

View file

@ -36,6 +36,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 {
@ -81,13 +82,6 @@ val javadocJar by tasks.creating(Jar::class) {
} }
tasks { tasks {
withType<JacocoReport> {
reports {
xml.isEnabled = true
html.isEnabled = true
}
}
withType<KotlinCompile>().configureEach { withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8" kotlinOptions.jvmTarget = "1.8"
} }
@ -96,6 +90,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)
} }