From c24d5dcf2369b27d16eefedefce6f730895f46f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwieci=C5=84ski?= <36954793+mateuszkwiecinski@users.noreply.github.com> Date: Fri, 3 May 2024 22:15:00 +0200 Subject: [PATCH 1/2] Update settings.gradle --- testproject/settings.gradle | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/testproject/settings.gradle b/testproject/settings.gradle index 90991c2..024124c 100644 --- a/testproject/settings.gradle +++ b/testproject/settings.gradle @@ -6,7 +6,22 @@ pluginManagement { } plugins { - id("com.gradle.enterprise") version "3.17.2" + id("com.gradle.develocity") version "3.17.2" +} + +develocity { + buildScan { + termsOfUseUrl = "https://gradle.com/terms-of-service" + termsOfUseAgree = "yes" + + if (System.getenv("CI")) { + tag "CI" + uploadInBackground false + } else { + publishing { onlyIf { false } } + uploadInBackground true + } + } } dependencyResolutionManagement { @@ -18,17 +33,3 @@ dependencyResolutionManagement { } rootProject.name = 'com.starter.dependencydiff.test' - -gradleEnterprise { - buildScan { - termsOfServiceUrl = "https://gradle.com/terms-of-service" - termsOfServiceAgree = "yes" - - uploadInBackground = System.getenv("CI") == null - - if (System.getenv("CI")) { - publishAlways() - tag "CI" - } - } -} From 596f8428cdd516e3dfe153d4f4f5cddd62cec1ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwieci=C5=84ski?= <36954793+mateuszkwiecinski@users.noreply.github.com> Date: Fri, 3 May 2024 22:17:20 +0200 Subject: [PATCH 2/2] Update settings.gradle --- testproject/settings.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testproject/settings.gradle b/testproject/settings.gradle index 024124c..ec306fb 100644 --- a/testproject/settings.gradle +++ b/testproject/settings.gradle @@ -16,10 +16,10 @@ develocity { if (System.getenv("CI")) { tag "CI" - uploadInBackground false + uploadInBackground = false } else { publishing { onlyIf { false } } - uploadInBackground true + uploadInBackground = true } } }