Treat warnings from the kotlin compiler as errors

This commit is contained in:
Benoit Marty 2019-10-08 14:30:59 +02:00
parent 546c537e3b
commit 6de64cbedd

View file

@ -59,6 +59,11 @@ allprojects {
]
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
// Warnings are potential errors, so stop ignoring them
kotlinOptions.allWarningsAsErrors = true
}
afterEvaluate {
extensions.findByName("kapt")?.arguments {
arg("dagger.gradle.incremental", "enabled")