Fixed QODANA_SHOW_REPORT environment variable resolving for Gradle 6.x

This commit is contained in:
Jakub Chrzanowski
2021-10-14 13:47:41 +02:00
committed by Jakub Chrzanowski
parent 7225827b67
commit 5bf6fb5af2
2 changed files with 2 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ qodana {
cachePath.set(projectDir.resolve(".qodana").canonicalPath)
reportPath.set(projectDir.resolve("build/reports/inspections").canonicalPath)
saveReport.set(true)
showReport.set(System.getenv("QODANA_SHOW_REPORT").toBoolean())
showReport.set(System.getenv("QODANA_SHOW_REPORT")?.toBoolean() ?: false)
}
tasks {