mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +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