From 6de64cbedd9801c7c2d6d5df3b318faeea7b117b Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 8 Oct 2019 14:30:59 +0200 Subject: [PATCH] Treat warnings from the kotlin compiler as errors --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index 70cbbbe4f6..714152370e 100644 --- a/build.gradle +++ b/build.gradle @@ -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")