fix(build): only enable -Werror
in CI
This commit is contained in:
parent
3b6964ffab
commit
1581d2e00c
1 changed files with 1 additions and 1 deletions
|
@ -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