refactor: centralize coverage exclusions for scoverage across modules
Build & Test (NowChessSystems) TeamCity build finished
Build & Test (NowChessSystems) TeamCity build finished
This commit is contained in:
@@ -8,6 +8,8 @@ version = "1.0-SNAPSHOT"
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
val versions = rootProject.extra["VERSIONS"] as Map<String, String>
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
val scoverageExcluded = rootProject.extra["SCOVERAGE_EXCLUDED"] as List<String>
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@@ -19,9 +21,7 @@ scala {
|
||||
|
||||
scoverage {
|
||||
scoverageVersion.set(versions["SCOVERAGE"]!!)
|
||||
excludedFiles.set(listOf(
|
||||
".*Dto\\.scala"
|
||||
))
|
||||
excludedFiles.set(scoverageExcluded)
|
||||
}
|
||||
|
||||
configurations.scoverage {
|
||||
|
||||
Reference in New Issue
Block a user