Skip to content

Commit 33af548

Browse files
authored
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.
1 parent e48fe8b commit 33af548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ plugins {
3232
id 'com.gradle.build-scan' version '2.0.2'
3333
id 'base'
3434
}
35-
if (properties.get("org.elasticsearch.acceptScanTOS", "false") == "true") {
35+
if (Boolean.valueOf(project.findProperty('org.elasticsearch.acceptScanTOS') ?: "false")) {
3636
buildScan {
3737
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
3838
termsOfServiceAgree = 'yes'

0 commit comments

Comments
 (0)