aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-05-27 04:29:13 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-05-27 04:29:13 +0530
commita740cb570aaf2e25d302b3b6eda4b58ca106e08c (patch)
treeec8fc3855cf3249998e1274599c2ffa6827dce93 /buildSrc/src
parent3f20678d799e15e21d1b7f013bc3672270f0d20f (diff)
build: escalate warnings to errors
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'buildSrc/src')
-rw-r--r--buildSrc/src/main/java/BaseProjectConfig.kt1
-rw-r--r--buildSrc/src/main/java/PasswordStorePlugin.kt1
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 -> {