Using Jacoco snapshot.

This commit is contained in:
Erik C. Thauvin 2021-04-28 20:03:36 -07:00
parent bfecf857a2
commit 2c48f94e6d

View file

@ -28,6 +28,7 @@ var isRelease = "release" in gradle.startParameter.taskNames
repositories {
mavenCentral()
jcenter() // needed by detekt 1.16.0
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
}
dependencies {
@ -61,13 +62,6 @@ val javadocJar by tasks.creating(Jar::class) {
}
tasks {
withType<JacocoReport> {
reports {
xml.isEnabled = true
html.isEnabled = true
}
}
withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}
@ -76,6 +70,18 @@ tasks {
destination = file("$projectDir/pom.xml")
}
jacoco {
toolVersion = "0.8.7-SNAPSHOT"
}
jacocoTestReport {
dependsOn(test)
reports {
xml.isEnabled = true
html.isEnabled = true
}
}
assemble {
dependsOn(javadocJar)
}