From ce4c8bb3d66a04f9232754eb00f899856709f5b6 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Thu, 14 Dec 2023 15:33:21 +0100 Subject: [PATCH 1/3] Bumped Gradle enterprise to 3.16 and CCUD plugins to 1.12.1 --- settings.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index 758ffb2be..bcc7eef5a 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -4,8 +4,8 @@ include("plugin") include("metrics") plugins { - id("com.gradle.enterprise") version "3.12.3" - id("com.gradle.common-custom-user-data-gradle-plugin") version "1.8.2" + id("com.gradle.enterprise") version "3.16" + id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.1" } gradleEnterprise { From 5a2957dc53eea7eb60e6b5f124f411c2b63afc09 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Thu, 14 Dec 2023 15:34:32 +0100 Subject: [PATCH 2/3] Set remote build cache to push only if authenticated --- settings.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index bcc7eef5a..274651f12 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -15,7 +15,9 @@ gradleEnterprise { buildCache { remote(HttpBuildCache::class) { url = uri("https://ge.openrewrite.org/cache/") - isPush = isCiServer + // Check access key presence to avoid build cache errors on PR builds when access key is not present + val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY") + isPush = isCiServer && !accessKey.isNullOrEmpty() } } From efbc044a6fd983e230710856a2bd1c7ae17e5784 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Thu, 14 Dec 2023 15:36:18 +0100 Subject: [PATCH 3/3] Added Revved up by Develocity badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 55f0c97a8..cab6475d9 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![ci](https://github.com/openrewrite/rewrite-gradle-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/openrewrite/rewrite-gradle-plugin/actions/workflows/ci.yml) [![Gradle Plugin Portal](https://img.shields.io/maven-metadata/v/https/plugins.gradle.org/m2/org.openrewrite/plugin/maven-metadata.xml.svg?label=gradlePluginPortal)](https://plugins.gradle.org/plugin/org.openrewrite.rewrite) [![Apache 2.0](https://img.shields.io/github/license/openrewrite/rewrite-gradle-plugin.svg)](https://www.apache.org/licenses/LICENSE-2.0) +[![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https://ge.openrewrite.org/scans) [![Contributing Guide](https://img.shields.io/badge/Contributing-Guide-informational)](https://github.com/openrewrite/.github/blob/main/CONTRIBUTING.md) ## What is this?