diff --git a/settings.gradle b/settings.gradle index 661532c103..f10ae567e2 100644 --- a/settings.gradle +++ b/settings.gradle @@ -12,14 +12,18 @@ pluginManagement { // https://docs.gradle.com/enterprise/gradle-plugin/ plugins { - id "com.gradle.enterprise" version "3.17" + id "com.gradle.develocity" version "3.17" } -gradleEnterprise { +def isCI = providers.environmentVariable('CI').present + +develocity { buildScan { - termsOfServiceUrl = "https://gradle.com/terms-of-service" - termsOfServiceAgree = "yes" - publishAlways() + termsOfUseUrl = "https://gradle.com/terms-of-service" + termsOfUseAgree = "yes" + publishing { + onlyIf { isCI } + } } }