Skip to content

Commit 577ae66

Browse files
committed
Gradle Enterprise -> Develocity
1 parent b187191 commit 577ae66

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

settings.gradle.kts

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
rootProject.name = "rewrite-migrate-java"
22

3+
pluginManagement {
4+
repositories {
5+
mavenLocal()
6+
gradlePluginPortal()
7+
}
8+
}
9+
310
plugins {
4-
id("com.gradle.enterprise") version "latest.release"
11+
id("com.gradle.develocity") version "latest.release"
512
id("com.gradle.common-custom-user-data-gradle-plugin") version "latest.release"
613
}
714

8-
gradleEnterprise {
9-
val isCiServer = System.getenv("CI")?.equals("true") ?: false
15+
develocity {
1016
server = "https://ge.openrewrite.org/"
11-
17+
val isCiServer = System.getenv("CI")?.equals("true") ?: false
18+
val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
19+
val authenticated = !accessKey.isNullOrBlank()
1220
buildCache {
13-
remote(gradleEnterprise.buildCache) {
21+
remote(develocity.buildCache) {
1422
isEnabled = true
15-
val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
16-
isPush = isCiServer && !accessKey.isNullOrBlank()
23+
isPush = isCiServer && authenticated
1724
}
1825
}
1926

2027
buildScan {
2128
capture {
22-
isTaskInputFiles = true
29+
fileFingerprints = true
2330
}
2431

25-
isUploadInBackground = !isCiServer
26-
27-
publishAlways()
28-
this as com.gradle.enterprise.gradleplugin.internal.extension.BuildScanExtensionWithHiddenFeatures
29-
publishIfAuthenticated()
32+
uploadInBackground = !isCiServer
3033
}
3134
}

0 commit comments

Comments
 (0)