Skip to content

Commit

Permalink
Update settings.gradle.kts to add Develocity
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek authored Jan 3, 2024
1 parent 1a89434 commit 6d3dd6f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
rootProject.name = "rewrite-cucumber-jvm"

plugins {
id("com.gradle.enterprise") version "3.16"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.12.1"
}

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

buildCache {
remote(HttpBuildCache::class) {
url = uri("https://ge.openrewrite.org/cache/")
// Check access key presence to avoid build cache errors on PR builds when access key is not present
val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
isPush = isCiServer && !accessKey.isNullOrEmpty()
}
}

buildScan {
capture {
isTaskInputFiles = true
}

isUploadInBackground = !isCiServer

publishAlways()
this as com.gradle.enterprise.gradleplugin.internal.extension.BuildScanExtensionWithHiddenFeatures
publishIfAuthenticated()
}
}

0 comments on commit 6d3dd6f

Please sign in to comment.