Skip to content

Commit 6d3dd6f

Browse files
authored
Update settings.gradle.kts to add Develocity
1 parent 1a89434 commit 6d3dd6f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

settings.gradle.kts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
11
rootProject.name = "rewrite-cucumber-jvm"
2+
3+
plugins {
4+
id("com.gradle.enterprise") version "3.16"
5+
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.1"
6+
}
7+
8+
gradleEnterprise {
9+
val isCiServer = System.getenv("CI")?.equals("true") ?: false
10+
server = "https://ge.openrewrite.org/"
11+
12+
buildCache {
13+
remote(HttpBuildCache::class) {
14+
url = uri("https://ge.openrewrite.org/cache/")
15+
// Check access key presence to avoid build cache errors on PR builds when access key is not present
16+
val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
17+
isPush = isCiServer && !accessKey.isNullOrEmpty()
18+
}
19+
}
20+
21+
buildScan {
22+
capture {
23+
isTaskInputFiles = true
24+
}
25+
26+
isUploadInBackground = !isCiServer
27+
28+
publishAlways()
29+
this as com.gradle.enterprise.gradleplugin.internal.extension.BuildScanExtensionWithHiddenFeatures
30+
publishIfAuthenticated()
31+
}
32+
}

0 commit comments

Comments
 (0)