mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +05:30
fix(build): only enable -Werror in CI
This commit is contained in:
parent
9815ef1910
commit
05a8b9bc67
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class KotlinCommonPlugin : Plugin<Project> {
|
||||||
project.tasks.run {
|
project.tasks.run {
|
||||||
withType<KotlinCompile>().configureEach {
|
withType<KotlinCompile>().configureEach {
|
||||||
compilerOptions {
|
compilerOptions {
|
||||||
allWarningsAsErrors.set(true)
|
allWarningsAsErrors.set(project.providers.environmentVariable("CI").isPresent)
|
||||||
freeCompilerArgs.addAll(ADDITIONAL_COMPILER_ARGS)
|
freeCompilerArgs.addAll(ADDITIONAL_COMPILER_ARGS)
|
||||||
languageVersion.set(KotlinVersion.KOTLIN_1_9)
|
languageVersion.set(KotlinVersion.KOTLIN_1_9)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue