From 7dd1e138fc95b543b7a271fcc8acdea956d83601 Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 4 Apr 2024 11:31:55 +0800 Subject: [PATCH] Migrate to develocity plugin https://docs.gradle.com/enterprise/gradle-plugin/legacy/#develocity_migration --- settings.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/settings.gradle b/settings.gradle index 7d549131b4..b33656ba26 100644 --- a/settings.gradle +++ b/settings.gradle @@ -15,13 +15,13 @@ plugins { id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0' } -def isCI = providers.environmentVariable("CI").isPresent() +def isCI = providers.environmentVariable("CI").present -gradleEnterprise { +develocity { buildScan { - termsOfServiceUrl = "https://gradle.com/terms-of-service" - termsOfServiceAgree = "yes" - publishAlwaysIf(isCI) + termsOfUseUrl = "https://gradle.com/terms-of-service" + termsOfUseAgree = "yes" + publishing.onlyIf { isCI } } }