mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-28 21:07:39 +00: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 {
|
project.tasks.run {
|
||||||
withType<KotlinCompile>().configureEach task@{
|
withType<KotlinCompile>().configureEach task@{
|
||||||
compilerOptions {
|
compilerOptions {
|
||||||
allWarningsAsErrors.set(true)
|
allWarningsAsErrors.set(project.providers.environmentVariable("CI").isPresent)
|
||||||
languageVersion.set(KotlinVersion.KOTLIN_1_9)
|
languageVersion.set(KotlinVersion.KOTLIN_1_9)
|
||||||
freeCompilerArgs.addAll(ADDITIONAL_COMPILER_ARGS)
|
freeCompilerArgs.addAll(ADDITIONAL_COMPILER_ARGS)
|
||||||
if (!this@task.name.contains("test", ignoreCase = true) && !isAppModule) {
|
if (!this@task.name.contains("test", ignoreCase = true) && !isAppModule) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user