Fixed Kover reports

This commit is contained in:
Erik C. Thauvin 2023-06-29 12:01:00 -07:00
parent a402dc91c0
commit ff97152646

View file

@ -30,7 +30,7 @@ val mavenUrl = "https://github.com/$gitHub"
val publicationName = "mavenJava"
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 isStable = stableKeyword || regex.matches(version)
return isStable.not()
@ -66,6 +66,17 @@ detekt {
//toolVersion = "main-SNAPSHOT"
}
koverReport {
defaults {
xml {
onCheck = true
}
html {
onCheck = true
}
}
}
sonarqube {
properties {
property("sonar.projectKey", "ethauvin_$name")
@ -146,10 +157,6 @@ tasks {
inputs.files(copyToDeploy)
mustRunAfter(clean)
}
"sonar" {
dependsOn(koverReport)
}
}
publishing {