From d55dc71cee5a9ede7b90fdd3ac312713ae1fc8fa Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 4 Apr 2024 10:57:57 +0800 Subject: [PATCH] Migrate to develocity plugin --- settings.gradle | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 } + } } }