Skip to content

Commit

Permalink
Accept Gradle build scan agreement (#30645)
Browse files Browse the repository at this point in the history
* Accept Gradle build scan argreement

Scans will be produced only when passing
`--scan`

* Condition TOS acceptance with property

* Switch to boolean flags
  • Loading branch information
alpar-t authored May 22, 2018
1 parent abf8c56 commit ff62638
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ import java.nio.file.Files
import java.nio.file.Path
import java.security.MessageDigest

plugins {
id 'com.gradle.build-scan' version '1.13.2'
}
if (properties.get("org.elasticsearch.acceptScanTOS", "false") == "true") {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}

// common maven publishing configuration
subprojects {
group = 'org.elasticsearch'
Expand Down

0 comments on commit ff62638

Please sign in to comment.