build: escalate warnings to errors

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-05-27 04:29:13 +05:30
parent 3f20678d79
commit a740cb570a
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 2 additions and 0 deletions

View file

@ -51,6 +51,7 @@ internal fun Project.configureForAllProjects() {
}
tasks.withType<KotlinCompile> {
kotlinOptions {
allWarningsAsErrors = true
jvmTarget = JavaVersion.VERSION_1_8.toString()
freeCompilerArgs = freeCompilerArgs + additionalCompilerArgs
languageVersion = "1.5"

View file

@ -38,6 +38,7 @@ class PasswordStorePlugin : Plugin<Project> {
project.tasks.withType<JavaCompile> {
options.compilerArgs.add("-Xlint:unchecked")
options.isDeprecation = true
options.isWarnings = true
}
}
is LibraryPlugin -> {