From 9b7430b6f32c74fab8e97eff6a5c0b6e887cf4fb Mon Sep 17 00:00:00 2001 From: Mike Cumings Date: Wed, 12 Aug 2026 13:34:36 -0700 Subject: [PATCH 1/2] Propagate Develocity configuration to sample Also: - Adds CI environment var --- .github/workflows/precommit.yml | 2 ++ .github/workflows/publish.yml | 2 ++ sample/settings.gradle.kts | 26 +++++++++++++++++++++++--- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index 17bf8a9..143a238 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -1,6 +1,8 @@ name: PR Build on: pull_request: +env: + CI: "true" jobs: gradle: runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 55e4103..db54ee2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,8 @@ on: workflow_dispatch: release: types: [published] +env: + CI: "true" jobs: gradle: runs-on: ubuntu-latest diff --git a/sample/settings.gradle.kts b/sample/settings.gradle.kts index 41ce6c5..0d47feb 100644 --- a/sample/settings.gradle.kts +++ b/sample/settings.gradle.kts @@ -9,7 +9,7 @@ pluginManagement { plugins { id("com.ebay.graph-analytics") - id("com.gradle.develocity") version("4.0.2") + id("com.gradle.develocity") version("4.5.0") } dependencyResolutionManagement { @@ -21,10 +21,30 @@ dependencyResolutionManagement { rootProject.name = "graph-analytics-sample" +val isCI = System.getenv("CI") != null + develocity { + server = "https://community.develocity.cloud" + projectId = "ebay" buildScan { - termsOfUseUrl.set("https://gradle.com/help/legal-terms-of-use") - termsOfUseAgree.set("yes") + uploadInBackground = !isCI + publishing.onlyIf { it.isAuthenticated } + obfuscation { + ipAddresses { addresses -> addresses.map { _ -> "0.0.0.0" } } + } + } +} + +buildCache { + local { + isEnabled = true + } + + remote(develocity.buildCache) { + isEnabled = true + // Check access key presence to avoid build cache errors on PR builds when access key is not present + val accessKey = System.getenv("DEVELOCITY_ACCESS_KEY") + isPush = isCI && accessKey != null } } From 2cf77d4d3ecf6eae91010d0afc2736a96818ce36 Mon Sep 17 00:00:00 2001 From: Mike Cumings Date: Wed, 12 Aug 2026 15:11:57 -0700 Subject: [PATCH 2/2] README badge should use a wildcard suffix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 895ee76..d8ef208 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Graph Analytics Plugin -[![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https://community.develocity.cloud/scans?search.rootProjectNames=graph-analytics-plugin) +[![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https://community.develocity.cloud/scans?search.rootProjectNames=graph-analytics-plugin%2A) ## About This Project