Using Jacoco snapshot.
This commit is contained in:
parent
bfecf857a2
commit
2c48f94e6d
1 changed files with 13 additions and 7 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue