Fixed Kover reports
This commit is contained in:
parent
a402dc91c0
commit
ff97152646
1 changed files with 12 additions and 5 deletions
|
@ -30,7 +30,7 @@ val mavenUrl = "https://github.com/$gitHub"
|
||||||
val publicationName = "mavenJava"
|
val publicationName = "mavenJava"
|
||||||
|
|
||||||
fun isNonStable(version: String): Boolean {
|
fun isNonStable(version: String): Boolean {
|
||||||
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.toUpperCase().contains(it) }
|
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase().contains(it) }
|
||||||
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
|
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
|
||||||
val isStable = stableKeyword || regex.matches(version)
|
val isStable = stableKeyword || regex.matches(version)
|
||||||
return isStable.not()
|
return isStable.not()
|
||||||
|
@ -66,6 +66,17 @@ detekt {
|
||||||
//toolVersion = "main-SNAPSHOT"
|
//toolVersion = "main-SNAPSHOT"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
koverReport {
|
||||||
|
defaults {
|
||||||
|
xml {
|
||||||
|
onCheck = true
|
||||||
|
}
|
||||||
|
html {
|
||||||
|
onCheck = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sonarqube {
|
sonarqube {
|
||||||
properties {
|
properties {
|
||||||
property("sonar.projectKey", "ethauvin_$name")
|
property("sonar.projectKey", "ethauvin_$name")
|
||||||
|
@ -146,10 +157,6 @@ tasks {
|
||||||
inputs.files(copyToDeploy)
|
inputs.files(copyToDeploy)
|
||||||
mustRunAfter(clean)
|
mustRunAfter(clean)
|
||||||
}
|
}
|
||||||
|
|
||||||
"sonar" {
|
|
||||||
dependsOn(koverReport)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue