build: escalate warnings to errors
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
3f20678d79
commit
a740cb570a
2 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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 -> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue