Skip to content

Commit a27076d

Browse files
committed
Analysis: Enable all warnings as errors for all modules
1 parent 95df07b commit a27076d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2+
13
buildscript {
24
repositories {
35
maven { url "https://a8c-libs.s3.amazonaws.com/android" }
@@ -25,6 +27,11 @@ allprojects {
2527
google()
2628
jcenter()
2729
}
30+
tasks.withType(KotlinCompile).all {
31+
kotlinOptions {
32+
allWarningsAsErrors = true
33+
}
34+
}
2835
}
2936

3037
apply plugin: 'com.automattic.android.configure'

0 commit comments

Comments
 (0)