mirror of
https://github.com/google/nomulus
synced 2026-01-06 05:27:13 +00:00
Make dev project configurable (#371)
* Make dev project configurable We should not hardcode our dev project in the public config file. * Remove the use of .ext when using external properties They are only needed when defining properties.
This commit is contained in:
@@ -94,8 +94,8 @@ task initCoverageMinimums {
|
||||
].asImmutable()
|
||||
|
||||
rootProject.ext.getMinCoverage = { key ->
|
||||
if (rootProject.ext.coverageMinimums.containsKey(key)) {
|
||||
return rootProject.ext.coverageMinimums.get(key)
|
||||
if (rootProject.coverageMinimums.containsKey(key)) {
|
||||
return rootProject.coverageMinimums.get(key)
|
||||
}
|
||||
return 0.0
|
||||
}
|
||||
@@ -117,7 +117,7 @@ jacocoTestCoverageVerification {
|
||||
// or MISSEDRATIO
|
||||
// - The 'minimum' threshold, given as a fraction or a percentage (including '%')
|
||||
limit {
|
||||
minimum = rootProject.ext.getMinCoverage(project.getName())
|
||||
minimum = rootProject.getMinCoverage(project.getName())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user