From 8c2842090b83ffd6d39fd89fc7fa41406f7eba0e Mon Sep 17 00:00:00 2001 From: Sam Snyder Date: Fri, 17 May 2024 22:22:28 -0700 Subject: [PATCH] Gradle Enterprise -> Develocity --- settings.gradle.kts | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index 3d14678..b79762f 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,31 +1,28 @@ rootProject.name = "rewrite-micrometer" plugins { - id("com.gradle.enterprise") version "latest.release" - id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.1" + id("com.gradle.develocity") version "latest.release" + id("com.gradle.common-custom-user-data-gradle-plugin") version "latest.release" } -gradleEnterprise { - val isCiServer = System.getenv("CI")?.equals("true") ?: false +develocity { server = "https://ge.openrewrite.org/" + val isCiServer = System.getenv("CI")?.equals("true") ?: false + val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY") + val authenticated = !accessKey.isNullOrBlank() buildCache { - remote(gradleEnterprise.buildCache) { + remote(develocity.buildCache) { isEnabled = true - val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY") - isPush = isCiServer && !accessKey.isNullOrBlank() + isPush = isCiServer && authenticated } } buildScan { capture { - isTaskInputFiles = true + fileFingerprints = true } - isUploadInBackground = !isCiServer - - publishAlways() - this as com.gradle.enterprise.gradleplugin.internal.extension.BuildScanExtensionWithHiddenFeatures - publishIfAuthenticated() + uploadInBackground = !isCiServer } }