Ignore compilation warnings, disabled by default.
This commit is contained in:
parent
8648e8ba53
commit
2fb5929e74
1 changed files with 8 additions and 0 deletions
|
|
@ -90,6 +90,14 @@ allprojects {
|
||||||
apply {
|
apply {
|
||||||
plugin("org.owasp.dependencycheck")
|
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:
|
// To run a sonar analysis:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue