fix(build): allow warnings in the build

This commit is contained in:
Harsh Shandilya 2025-06-26 20:55:30 +05:30
parent 46ce31bcb8
commit 23698beb65

View file

@ -29,7 +29,9 @@ class KotlinCommonPlugin : Plugin<Project> {
project.tasks.run {
withType<KotlinCompile>().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.