Browse Source

Always publish build scans on CI (#4139)

This will let us easy to observe and share build statistics on CI.
pull/4262/head
Zongle Wang 2 years ago committed by GitHub
parent
commit
efeb218003
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      settings.gradle

11
settings.gradle

@ -11,9 +11,20 @@ pluginManagement {
}
plugins {
id 'com.gradle.enterprise' version '3.16.2'
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}
def isCI = providers.environmentVariable("CI").isPresent()
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishAlwaysIf(isCI)
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {

Loading…
Cancel
Save