Skip to content

Commit aa00211

Browse files
authored
Merge pull request #17318 from wordpress-mobile/analysis/wordpress-all-warnings-as-errors
[Compile Warnings As Errors] All Modules - Enable All Warnings as Errors
2 parents 4105e74 + f7bc47e commit aa00211

File tree

5 files changed

+1
-20
lines changed

5 files changed

+1
-20
lines changed

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)