From 3d2829eb99e9dae0d0eebdce62ce641621abc93d Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Sun, 19 May 2024 12:18:43 -0500 Subject: [PATCH] Migrate to Gradle Develocity plugin (#682) * Replaces `com.gradle.enterprise:3.16.2` with `com.gradle.develocity:3.17.2` * Updates `io.spring.ge.conventions` to 0.0.17 * Updates deprecated usages of previous Enterprise plugin (cherry picked from commit 61c850b8bdfcd407a14d3a7de5313acb8186cd6a) --- build.gradle | 7 ------- settings.gradle | 14 ++++++++++---- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index 9f62933c..dbec8cfa 100644 --- a/build.gradle +++ b/build.gradle @@ -24,13 +24,6 @@ allprojects { } } -if (hasProperty('buildScan')) { - buildScan { - termsOfServiceUrl = 'https://gradle.com/terms-of-service' - termsOfServiceAgree = 'yes' - } -} - nohttp { allowlistFile = project.file('src/nohttp/allowlist.lines') source.exclude "**/bin/**" diff --git a/settings.gradle b/settings.gradle index 75a495ce..2075459c 100644 --- a/settings.gradle +++ b/settings.gradle @@ -8,10 +8,14 @@ pluginManagement { } plugins { - id "com.gradle.enterprise" version "3.12.6" - id "io.spring.ge.conventions" version "0.0.13" + id 'com.gradle.develocity' version '3.17.2' + id 'io.spring.ge.conventions' version '0.0.17' apply false } +startParameter.noBuildScan = startParameter.taskNames.contains('format') + +apply plugin: 'io.spring.ge.conventions' + include 'spring-pulsar' include 'spring-pulsar-bom' include 'spring-pulsar-cache-provider' @@ -35,9 +39,11 @@ rootProject.children.findAll { !it.name.startsWith('sample-') } .each {project -> project.buildFileName = "${project.name}.gradle" } settings.gradle.projectsLoaded { - gradleEnterprise { + develocity { buildScan { - publishOnFailure() + publishing.onlyIf { !it.buildResult.failures.empty } + termsOfUseUrl = 'https://gradle.com/terms-of-service' + termsOfUseAgree = 'yes' } } }