From 36cef26ab501e15696943ebefb776cfa3c06aaa3 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 22 Oct 2020 17:23:45 +0200 Subject: [PATCH] Fix allWarningsAsErrors mistake... Strange behaviour of Elvis operator in Groovy... --- build.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 05dcaa43ed..0c4b35b060 100644 --- a/build.gradle +++ b/build.gradle @@ -65,9 +65,8 @@ allprojects { tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { // Warnings are potential errors, so stop ignoring them // You can override by passing `-PallWarningsAsErrors=false` in the command line - kotlinOptions.allWarningsAsErrors = project.properties['allWarningsAsErrors']?.toBoolean() ?: true + kotlinOptions.allWarningsAsErrors = project.getProperties().getOrDefault("allWarningsAsErrors", "true").toBoolean() } - } task clean(type: Delete) {