aboutsummaryrefslogtreecommitdiff
path: root/build-logic/src/main/kotlin/app
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-07-22 15:44:52 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-07-22 15:46:32 +0530
commit1581d2e00ce62d57f783d8a53a023d7d172691cc (patch)
tree8015ebc4c1859bbd0ea6fdb0c64a8d78f0e465f7 /build-logic/src/main/kotlin/app
parent3b6964ffab3ab4390a3da3539429fad529ab63f3 (diff)
fix(build): only enable `-Werror` in CI
Diffstat (limited to 'build-logic/src/main/kotlin/app')
-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) {