mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-01 14:55:19 +00:00
build: escalate warnings to errors
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
@@ -51,6 +51,7 @@ internal fun Project.configureForAllProjects() {
|
|||||||
}
|
}
|
||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
|
allWarningsAsErrors = true
|
||||||
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
||||||
freeCompilerArgs = freeCompilerArgs + additionalCompilerArgs
|
freeCompilerArgs = freeCompilerArgs + additionalCompilerArgs
|
||||||
languageVersion = "1.5"
|
languageVersion = "1.5"
|
||||||
|
@@ -38,6 +38,7 @@ class PasswordStorePlugin : Plugin<Project> {
|
|||||||
project.tasks.withType<JavaCompile> {
|
project.tasks.withType<JavaCompile> {
|
||||||
options.compilerArgs.add("-Xlint:unchecked")
|
options.compilerArgs.add("-Xlint:unchecked")
|
||||||
options.isDeprecation = true
|
options.isDeprecation = true
|
||||||
|
options.isWarnings = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is LibraryPlugin -> {
|
is LibraryPlugin -> {
|
||||||
|
Reference in New Issue
Block a user