Skip to content

Commit d9a7eef

Browse files
committed
Analysis: Enable all warnings as errors for all modules
This 'allWarningsAsErrors' configuration was previously applied on the module level in order to make sure that, as the overall 'Kotlin Warnings as Errors' work is progressing, no new warnings are added to a specific module, which is already free of warnings. However, now that the overall 'Kotlin Warnings as Errors' work is complete on all modules, this module level 'allWarningsAsErrors' configuration is now replaced by a root level 'allWarningsAsErrors' configuration that will be applied by default to all modules.
1 parent b9891c6 commit d9a7eef

6 files changed

Lines changed: 1 addition & 24 deletions

File tree

WordPress/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,6 @@ android {
147147
targetCompatibility JavaVersion.VERSION_1_8
148148
}
149149

150-
kotlinOptions {
151-
allWarningsAsErrors = true
152-
}
153-
154150
flavorDimensions "app", "buildType"
155151

156152
productFlavors {

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
]

libs/annotations/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
plugins {
22
id "org.jetbrains.kotlin.jvm"
33
}
4-
5-
compileKotlin {
6-
kotlinOptions {
7-
allWarningsAsErrors = true
8-
}
9-
}

libs/editor/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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'

libs/image-editor/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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'

libs/processors/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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-
126
dependencies {
137
implementation project(':libs:annotations')
148
implementation "com.google.auto.service:auto-service:$autoServiceVersion"

0 commit comments

Comments
 (0)