From 23698beb65c783bcecd2b2a7229b9d7fb5b85e52 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 26 Jun 2025 20:55:30 +0530 Subject: [PATCH] fix(build): allow warnings in the build --- .../kotlin/dev/msfjarvis/claw/gradle/KotlinCommonPlugin.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/KotlinCommonPlugin.kt b/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/KotlinCommonPlugin.kt index 04114af9..1a9ed612 100644 --- a/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/KotlinCommonPlugin.kt +++ b/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/KotlinCommonPlugin.kt @@ -29,7 +29,9 @@ class KotlinCommonPlugin : Plugin { project.tasks.run { withType().configureEach { compilerOptions { - allWarningsAsErrors.set(project.providers.environmentVariable("CI").isPresent) + // This can't be enabled until we get rid of Anvil because it enables + // the deprecated Kotlin 1.9 language version. + allWarningsAsErrors.set(false) freeCompilerArgs.addAll(ADDITIONAL_COMPILER_ARGS) // This is necessary for Anvil to function, do not be the idiot reverting this // 3 months later because you forgot about it.