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 61c850b8bd)
This commit is contained in:
Chris Bono
2024-05-19 12:18:43 -05:00
parent 1e82929f71
commit 3d2829eb99
2 changed files with 10 additions and 11 deletions

View File

@@ -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/**"

View File

@@ -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'
}
}
}