Enable -Werror for buildSrc
This commit is contained in:
@@ -199,6 +199,7 @@ java {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompile>().configureEach {
|
tasks.withType<KotlinCompile>().configureEach {
|
||||||
|
kotlinOptions.allWarningsAsErrors = true
|
||||||
kotlinOptions.freeCompilerArgs += listOf(
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
"-Xopt-in=kotlin.RequiresOptIn",
|
"-Xopt-in=kotlin.RequiresOptIn",
|
||||||
"-Xskip-runtime-version-check",
|
"-Xskip-runtime-version-check",
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ val Project.testTargetSupportsCodeCoverage: Boolean
|
|||||||
|
|
||||||
fun projectOrFiles(proj: Project, notation: String): Any? {
|
fun projectOrFiles(proj: Project, notation: String): Any? {
|
||||||
val propertyMapper = proj.findProperty("notationMapping") ?: return proj.project(notation)
|
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 {
|
return proj.files(mapping).also {
|
||||||
proj.logger.info("MAPPING: $notation -> ${it.asPath}")
|
proj.logger.info("MAPPING: $notation -> ${it.asPath}")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user