Skip to content

Commit 1dc7bdf

Browse files
committed
Update gradle-enterprise configuration
1 parent 814b1fa commit 1dc7bdf

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

settings.gradle.kts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,27 @@ rootProject.name = "rewrite-migrate-java"
22

33
plugins {
44
id("com.gradle.enterprise") version "3.7"
5+
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.4.2"
56
}
67

78
gradleEnterprise {
9+
val isCiServer = System.getenv("CI")?.equals("true") ?: false
810
server = "https://ge.openrewrite.org/"
911

1012
buildCache {
11-
local {
12-
isEnabled = true
13-
}
14-
1513
remote(HttpBuildCache::class) {
16-
isPush = true
1714
url = uri("https://ge.openrewrite.org/cache/")
15+
isPush = isCiServer
1816
}
19-
2017
}
2118

2219
buildScan {
2320
publishAlways()
21+
isUploadInBackground = !isCiServer
22+
23+
capture {
24+
isTaskInputFiles = true
25+
}
2426
}
27+
2528
}

0 commit comments

Comments
 (0)