File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 11rootProject.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+ }
You can’t perform that action at this time.
0 commit comments