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"
|
||||
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue