Skip to content

Commit

Permalink
Disable allWarningsAsErrors only in fluxc, fluxc-plugin and `lo…
Browse files Browse the repository at this point in the history
…gin` modules

This option was not enabled originally.
  • Loading branch information
wzieba committed Jan 22, 2025
1 parent f7a890d commit cc2d648
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ allprojects {
tasks.withType(KotlinCompile).all {
kotlinOptions {
jvmTarget = libs.versions.java.get()
allWarningsAsErrors = false //todo
allWarningsAsErrors = true
freeCompilerArgs += [
"-opt-in=kotlin.RequiresOptIn",
"-Xjvm-default=all-compatibility",
Expand Down
7 changes: 7 additions & 0 deletions libs/fluxc-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
Expand Down Expand Up @@ -43,6 +45,11 @@ android {
}
}

tasks.withType(KotlinCompile).configureEach {
compilerOptions {
allWarningsAsErrors = false
}
}

dependencies {
implementation project(":libs:fluxc")
Expand Down
8 changes: 8 additions & 0 deletions libs/fluxc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
Expand Down Expand Up @@ -125,6 +127,12 @@ dependencies {
lintChecks libs.wordpress.lint
}

tasks.withType(KotlinCompile).configureEach {
compilerOptions {
allWarningsAsErrors = false
}
}

dependencyAnalysis {
issues {
onUnusedDependencies {
Expand Down
8 changes: 8 additions & 0 deletions libs/login/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id "com.android.library"
id "org.jetbrains.kotlin.android"
Expand Down Expand Up @@ -32,6 +34,12 @@ android {
}
}

tasks.withType(KotlinCompile).configureEach {
compilerOptions {
allWarningsAsErrors = false
}
}

dependencies {
implementation libs.wordpress.utils
implementation libs.gravatar
Expand Down

0 comments on commit cc2d648

Please sign in to comment.