mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2026-04-13 01:46:25 +02:00
fix(build): only enable -Werror in CI
This commit is contained in:
parent
3b6964ffab
commit
1581d2e00c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue