From 8ca31b6c54908b4b14c68a6c4e678952d2c4ce08 Mon Sep 17 00:00:00 2001 From: Sam Snyder Date: Fri, 17 May 2024 23:48:48 -0700 Subject: [PATCH] Update for rewrite 8.26.0 --- settings.gradle.kts | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index e5745ddce..3a1c8254d 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -8,32 +8,28 @@ pluginManagement { } plugins { - id("com.gradle.enterprise") version "latest.release" + 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 } - }