Skip to content

Commit ff62638

Browse files
authored
Accept Gradle build scan agreement (#30645)
* Accept Gradle build scan argreement Scans will be produced only when passing `--scan` * Condition TOS acceptance with property * Switch to boolean flags
1 parent abf8c56 commit ff62638

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ import java.nio.file.Files
3636
import java.nio.file.Path
3737
import java.security.MessageDigest
3838

39+
plugins {
40+
id 'com.gradle.build-scan' version '1.13.2'
41+
}
42+
if (properties.get("org.elasticsearch.acceptScanTOS", "false") == "true") {
43+
buildScan {
44+
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
45+
termsOfServiceAgree = 'yes'
46+
}
47+
}
48+
3949
// common maven publishing configuration
4050
subprojects {
4151
group = 'org.elasticsearch'

0 commit comments

Comments
 (0)