From aa6fae928e9196f8e8609c82e9f0f9c3184ea0e5 Mon Sep 17 00:00:00 2001 From: Joe Grandja <10884212+jgrandja@users.noreply.github.com> Date: Wed, 16 Oct 2024 19:32:32 -0400 Subject: [PATCH] Migrate to com.gradle.develocity plugin Closes gh-1770 --- .github/workflows/continuous-integration-workflow.yml | 3 +++ .github/workflows/pr-build-workflow.yml | 3 +++ build.gradle | 6 +++--- settings.gradle | 3 +-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index b77f114d..41c38bf1 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -8,6 +8,9 @@ on: - cron: '0 10 * * *' # Once per day at 10am UTC workflow_dispatch: +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }} + jobs: build: name: Build diff --git a/.github/workflows/pr-build-workflow.yml b/.github/workflows/pr-build-workflow.yml index 1c613347..563a48e1 100644 --- a/.github/workflows/pr-build-workflow.yml +++ b/.github/workflows/pr-build-workflow.yml @@ -5,6 +5,9 @@ on: branches: - '**' +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }} + jobs: build: name: Build diff --git a/build.gradle b/build.gradle index c6a13489..44f94d97 100644 --- a/build.gradle +++ b/build.gradle @@ -15,9 +15,9 @@ springRelease { replaceSnapshotVersionInReferenceDocUrl = true } -if (hasProperty("buildScan")) { +develocity { buildScan { - termsOfServiceUrl = "https://gradle.com/terms-of-service" - termsOfServiceAgree = "yes" + termsOfUseUrl = 'https://gradle.com/help/legal-terms-of-use' + termsOfUseAgree = 'yes' } } diff --git a/settings.gradle b/settings.gradle index 4ab072cb..9a4c2fee 100644 --- a/settings.gradle +++ b/settings.gradle @@ -5,8 +5,7 @@ pluginManagement { } plugins { - id "com.gradle.enterprise" version "3.13.3" - id "io.spring.ge.conventions" version "0.0.13" + id "io.spring.develocity.conventions" version "0.0.22" } dependencyResolutionManagement {