Enable -Werror for buildSrc
This commit is contained in:
@@ -135,9 +135,9 @@ val Project.globalTestArgs: List<String>
|
||||
val Project.testTargetSupportsCodeCoverage: Boolean
|
||||
get() = this.testTarget.supportsCodeCoverage()
|
||||
|
||||
fun projectOrFiles(proj:Project, notation: String):Any?{
|
||||
fun projectOrFiles(proj: Project, notation: String): Any? {
|
||||
val propertyMapper = proj.findProperty("notationMapping") ?: return proj.project(notation)
|
||||
val mapping = (propertyMapper as? Map<String, String>)?.get(notation) ?: return proj.project(notation)
|
||||
val mapping = (propertyMapper as? Map<*, *>)?.get(notation) as? String ?: return proj.project(notation)
|
||||
return proj.files(mapping).also {
|
||||
proj.logger.info("MAPPING: $notation -> ${it.asPath}")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user