diff options
Diffstat (limited to 'buildSrc/src')
-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 -> { |