Always publish build scans on CI (#4139)

This will let us easy to observe and share build statistics on CI.
This commit is contained in:
Zongle Wang 2024-02-23 21:41:33 +08:00 committed by GitHub
parent 5c3a029dd9
commit efeb218003
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View File

@ -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 {