[#9] Treat compiler warnings as errors
This commit is contained in:
parent
7520e031c8
commit
cec2ad260c
|
@ -17,3 +17,4 @@ build/
|
||||||
gen/
|
gen/
|
||||||
local.properties
|
local.properties
|
||||||
/.idea/deploymentTargetDropDown.xml
|
/.idea/deploymentTargetDropDown.xml
|
||||||
|
*.hprof
|
||||||
|
|
|
@ -85,6 +85,7 @@ android {
|
||||||
// TODO [#6]: Figure out how to move this into the build-conventions
|
// TODO [#6]: Figure out how to move this into the build-conventions
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = libs.versions.java.get()
|
jvmTarget = libs.versions.java.get()
|
||||||
|
allWarningsAsErrors = project.property("IS_TREAT_WARNINGS_AS_ERRORS").toString().toBoolean()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ org.gradle.vfs.watch=true
|
||||||
org.gradle.configureondemand=false
|
org.gradle.configureondemand=false
|
||||||
org.gradle.caching=true
|
org.gradle.caching=true
|
||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
|
org.gradle.jvmargs=-Xmx3g
|
||||||
|
|
||||||
kapt.include.compile.classpath=false
|
kapt.include.compile.classpath=false
|
||||||
kapt.incremental.apt=true
|
kapt.incremental.apt=true
|
||||||
|
@ -11,6 +12,9 @@ kapt.use.worker.api=true
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.builder.sdkDownload=true
|
android.builder.sdkDownload=true
|
||||||
|
|
||||||
|
# Kotlin compiler warnings can be considered errors, failing the build.
|
||||||
|
IS_TREAT_WARNINGS_AS_ERRORS=true
|
||||||
|
|
||||||
# Optionally configure code coverage, as historically Jacoco has at times been buggy with respect to new Kotlin versions
|
# Optionally configure code coverage, as historically Jacoco has at times been buggy with respect to new Kotlin versions
|
||||||
IS_COVERAGE_ENABLED=true
|
IS_COVERAGE_ENABLED=true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue