Browse Source

Remove Gradle deprecation warnings (#40449)

* Remove Gradle deprecation warnings

Turns out that without the explicit project, some how the deprecated
properties were being red.
With this change we have no Gradle deprecation warnings.
Alpar Torok 6 years ago
parent
commit
33af548df7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build.gradle

+ 1 - 1
build.gradle

@@ -32,7 +32,7 @@ plugins {
     id 'com.gradle.build-scan' version '2.0.2'
     id 'base'
 }
-if (properties.get("org.elasticsearch.acceptScanTOS", "false") == "true") {
+if (Boolean.valueOf(project.findProperty('org.elasticsearch.acceptScanTOS') ?: "false")) {
     buildScan {
         termsOfServiceUrl = 'https://gradle.com/terms-of-service'
         termsOfServiceAgree = 'yes'