Browse Source

Ignore compilation warnings, disabled by default.

pull/935/head
Benoit Marty 1 year ago
parent
commit
39b170179e
  1. 8
      build.gradle.kts

8
build.gradle.kts

@ -90,6 +90,14 @@ allprojects { @@ -90,6 +90,14 @@ allprojects {
apply {
plugin("org.owasp.dependencycheck")
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
// Warnings are potential errors, so stop ignoring them
// This is disabled by default, but the CI will enforce this.
// You can override by passing `-PallWarningsAsErrors=true` in the command line
// Or add a line with "allWarningsAsErrors=true" in your ~/.gradle/gradle.properties file
kotlinOptions.allWarningsAsErrors = project.properties["allWarningsAsErrors"] == "true"
}
}
// To run a sonar analysis:

Loading…
Cancel
Save