mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 11:59:12 +03:00
Treat warnings from the kotlin compiler as errors
This commit is contained in:
parent
546c537e3b
commit
6de64cbedd
1 changed files with 5 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue