fix: prevent warnings in CI

This commit is contained in:
Harsh Shandilya 2022-11-14 02:39:56 +05:30
parent 0232a4179a
commit aa2a109587
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -27,7 +27,8 @@ class KotlinCommonPlugin : Plugin<Project> {
} }
withType<KotlinCompile>().configureEach { withType<KotlinCompile>().configureEach {
kotlinOptions { kotlinOptions {
allWarningsAsErrors = project.providers.environmentVariable("GITHUB_WORKFLOW").isPresent allWarningsAsErrors =
false // project.providers.environmentVariable("GITHUB_WORKFLOW").isPresent
jvmTarget = JavaVersion.VERSION_11.toString() jvmTarget = JavaVersion.VERSION_11.toString()
freeCompilerArgs = freeCompilerArgs + ADDITIONAL_COMPILER_ARGS freeCompilerArgs = freeCompilerArgs + ADDITIONAL_COMPILER_ARGS
languageVersion = "1.7" languageVersion = "1.7"

View file

@ -10,6 +10,7 @@ systemProp.org.gradle.android.cache-fix.ignoreVersionCheck=true
# Enable experimental configuration caching # Enable experimental configuration caching
org.gradle.unsafe.configuration-cache=true org.gradle.unsafe.configuration-cache=true
org.gradle.unsafe.configuration-cache-problems=warn
# Enable Kotlin incremental compilation # Enable Kotlin incremental compilation
kotlin.incremental=true kotlin.incremental=true