Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit 0246744

Browse files
committed
Gradle Enterprise -> Develocity
1 parent dff5070 commit 0246744

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

settings.gradle.kts

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,28 @@ pluginManagement {
88
rootProject.name = "rewrite-kotlin"
99

1010
plugins {
11-
id("com.gradle.enterprise") version "latest.release"
11+
id("com.gradle.develocity") version "latest.release"
1212
id("com.gradle.common-custom-user-data-gradle-plugin") version "latest.release"
1313
}
1414

15-
gradleEnterprise {
16-
val isCiServer = System.getenv("CI")?.equals("true") ?: false
15+
develocity {
1716
server = "https://ge.openrewrite.org/"
1817

18+
val isCiServer = System.getenv("CI")?.equals("true") ?: false
19+
val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
20+
val authenticated = !accessKey.isNullOrBlank()
1921
buildCache {
20-
remote(gradleEnterprise.buildCache) {
22+
remote(develocity.buildCache) {
2123
isEnabled = true
22-
val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
23-
isPush = isCiServer && !accessKey.isNullOrBlank()
24+
isPush = isCiServer && authenticated
2425
}
2526
}
2627

2728
buildScan {
2829
capture {
29-
isTaskInputFiles = true
30+
fileFingerprints = true
3031
}
3132

32-
isUploadInBackground = !isCiServer
33-
34-
publishAlways()
35-
this as com.gradle.enterprise.gradleplugin.internal.extension.BuildScanExtensionWithHiddenFeatures
36-
publishIfAuthenticated()
33+
uploadInBackground = !isCiServer
3734
}
38-
}
35+
}

0 commit comments

Comments
 (0)