summaryrefslogtreecommitdiff
path: root/build-logic/src
diff options
context:
space:
mode:
Diffstat (limited to 'build-logic/src')
-rw-r--r--build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinCommonPlugin.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinCommonPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinCommonPlugin.kt
index 5a0b14a8..68195033 100644
--- a/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinCommonPlugin.kt
+++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinCommonPlugin.kt
@@ -24,7 +24,7 @@ class KotlinCommonPlugin : Plugin<Project> {
project.tasks.run {
withType<KotlinCompile>().configureEach task@{
compilerOptions {
- allWarningsAsErrors.set(true)
+ allWarningsAsErrors.set(project.providers.environmentVariable("CI").isPresent)
languageVersion.set(KotlinVersion.KOTLIN_1_9)
freeCompilerArgs.addAll(ADDITIONAL_COMPILER_ARGS)
if (!this@task.name.contains("test", ignoreCase = true) && !isAppModule) {