From 2fb5929e744e6716bdb443624362991a9ccae5ed Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 20 Jul 2023 15:27:57 +0200 Subject: [PATCH] Ignore compilation warnings, disabled by default. --- build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index c03881144e..9272514899 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -90,6 +90,14 @@ allprojects { apply { plugin("org.owasp.dependencycheck") } + + tasks.withType { + // 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: