diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2021-05-27 04:29:13 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2021-05-27 04:29:13 +0530 |
commit | a740cb570aaf2e25d302b3b6eda4b58ca106e08c (patch) | |
tree | ec8fc3855cf3249998e1274599c2ffa6827dce93 /buildSrc/src/main | |
parent | 3f20678d799e15e21d1b7f013bc3672270f0d20f (diff) |
build: escalate warnings to errors
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'buildSrc/src/main')
-rw-r--r-- | buildSrc/src/main/java/BaseProjectConfig.kt | 1 | ||||
-rw-r--r-- | buildSrc/src/main/java/PasswordStorePlugin.kt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/buildSrc/src/main/java/BaseProjectConfig.kt b/buildSrc/src/main/java/BaseProjectConfig.kt index 7666424c..808d428d 100644 --- a/buildSrc/src/main/java/BaseProjectConfig.kt +++ b/buildSrc/src/main/java/BaseProjectConfig.kt @@ -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" diff --git a/buildSrc/src/main/java/PasswordStorePlugin.kt b/buildSrc/src/main/java/PasswordStorePlugin.kt index aa2f152f..5db8c893 100644 --- a/buildSrc/src/main/java/PasswordStorePlugin.kt +++ b/buildSrc/src/main/java/PasswordStorePlugin.kt @@ -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 -> { |