Skip to content

Commit 406eea7

Browse files
committed
Upgrade Gradle Enterprise plugin to Develocity 4.3.2
- Upgrade com.gradle.enterprise 3.13.1 to com.gradle.develocity 4.3.2 - Upgrade common-custom-user-data-gradle-plugin 1.10 to 2.4.0 - Migrate from gradleEnterprise {} to develocity {} DSL - Update server URL from ge.apache.org to develocity.apache.org - Enable remote build cache (read-only for local builds, push on CI)
1 parent 82c53aa commit 406eea7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

settings.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,20 @@
1717
* under the License.
1818
*/
1919
plugins {
20-
id 'com.gradle.enterprise' version '3.13.1'
21-
id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.10'
20+
id 'com.gradle.develocity' version '4.3.2'
21+
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.4.0'
2222
}
2323

2424
def isGithubActions = System.getenv('GITHUB_ACTIONS') != null
2525
def isJenkins = System.getenv('JENKINS_URL') != null
2626
def isCI = isGithubActions || isJenkins
2727

28-
gradleEnterprise {
29-
server = "https://ge.apache.org"
28+
develocity {
29+
server = "https://develocity.apache.org"
3030
buildScan {
31-
capture { taskInputFiles = true }
31+
capture { fileFingerprints = true }
3232
uploadInBackground = !isCI
33-
publishAlways()
34-
publishIfAuthenticated()
33+
publishing.onlyIf { it.authenticated }
3534
obfuscation {
3635
// This obfuscates the IP addresses of the build machine in the build scan.
3736
// Alternatively, the build scan will provide the hostname for troubleshooting host-specific issues.
@@ -45,8 +44,9 @@ buildCache {
4544
enabled = !isCI
4645
}
4746

48-
remote(gradleEnterprise.buildCache) {
49-
enabled = false
47+
remote(develocity.buildCache) {
48+
enabled = true
49+
push = isCI
5050
}
5151
}
5252

0 commit comments

Comments
 (0)