Skip to content

Commit 61c850b

Browse files
authored
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
1 parent 1c96e22 commit 61c850b

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

build.gradle

-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@ allprojects {
2525
}
2626
}
2727

28-
if (hasProperty('buildScan')) {
29-
buildScan {
30-
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
31-
termsOfServiceAgree = 'yes'
32-
}
33-
}
34-
3528
nohttp {
3629
allowlistFile = project.file('src/nohttp/allowlist.lines')
3730
source.exclude "**/bin/**"

settings.gradle

+10-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ pluginManagement {
88
}
99

1010
plugins {
11-
id "com.gradle.enterprise" version "3.16.2"
12-
id "io.spring.ge.conventions" version "0.0.15"
11+
id 'com.gradle.develocity' version '3.17.2'
12+
id 'io.spring.ge.conventions' version '0.0.17' apply false
1313
}
1414

15+
startParameter.noBuildScan = startParameter.taskNames.contains('format')
16+
17+
apply plugin: 'io.spring.ge.conventions'
18+
1519
include 'spring-pulsar'
1620
include 'spring-pulsar-bom'
1721
include 'spring-pulsar-cache-provider'
@@ -35,9 +39,11 @@ rootProject.children.findAll { !it.name.startsWith('sample-') }
3539
.each {project -> project.buildFileName = "${project.name}.gradle" }
3640

3741
settings.gradle.projectsLoaded {
38-
gradleEnterprise {
42+
develocity {
3943
buildScan {
40-
publishOnFailure()
44+
publishing.onlyIf { !it.buildResult.failures.empty }
45+
termsOfUseUrl = 'https://gradle.com/terms-of-service'
46+
termsOfUseAgree = 'yes'
4147
}
4248
}
4349
}

0 commit comments

Comments
 (0)