File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ allprojects {
113113 tasks. withType(KotlinCompile ). all {
114114 kotlinOptions {
115115 jvmTarget = JavaVersion . VERSION_1_8
116+ allWarningsAsErrors = true
116117 freeCompilerArgs + = [
117118 " -Xopt-in=kotlin.RequiresOptIn"
118119 ]
Original file line number Diff line number Diff line change 11plugins {
22 id " org.jetbrains.kotlin.jvm"
33}
4-
5- compileKotlin {
6- kotlinOptions {
7- allWarningsAsErrors = true
8- }
9- }
Original file line number Diff line number Diff line change @@ -40,10 +40,6 @@ android {
4040 targetSdkVersion rootProject. targetSdkVersion
4141 }
4242
43- kotlinOptions {
44- allWarningsAsErrors = true
45- }
46-
4743 // Avoid 'duplicate files during packaging of APK' errors
4844 packagingOptions {
4945 exclude ' LICENSE.txt'
Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ android {
1818 vectorDrawables. useSupportLibrary = true
1919 }
2020
21- kotlinOptions {
22- allWarningsAsErrors = true
23- }
24-
2521 sourceSets {
2622 main. java. srcDirs + = ' src/main/kotlin'
2723 test. java. srcDirs + = ' src/test/kotlin'
Original file line number Diff line number Diff line change @@ -3,12 +3,6 @@ plugins {
33 id " org.jetbrains.kotlin.kapt"
44}
55
6- compileKotlin {
7- kotlinOptions {
8- allWarningsAsErrors = true
9- }
10- }
11-
126dependencies {
137 implementation project(' :libs:annotations' )
148 implementation " com.google.auto.service:auto-service:$autoServiceVersion "
You can’t perform that action at this time.
0 commit comments