Skip to content

Commit

Permalink
Gradle Enterprise -> Develocity
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed May 30, 2024
1 parent 3eb016c commit 37aa445
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,27 @@ includeBuild(
)

plugins {
id("com.gradle.enterprise") version "latest.release"
id("com.gradle.develocity") version "latest.release"
id("com.gradle.common-custom-user-data-gradle-plugin") version "latest.release"
}

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

val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
val authenticated = !accessKey.isNullOrBlank()
buildCache {
remote(gradleEnterprise.buildCache) {
remote(develocity.buildCache) {
isEnabled = true
val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
isPush = isCiServer && !accessKey.isNullOrBlank()
isPush = isCiServer && authenticated
}
}

buildScan {
capture {
isTaskInputFiles = true
fileFingerprints = true
}

isUploadInBackground = !isCiServer

publishAlways()
this as com.gradle.enterprise.gradleplugin.internal.extension.BuildScanExtensionWithHiddenFeatures
publishIfAuthenticated()
uploadInBackground = !isCiServer
}
}

0 comments on commit 37aa445

Please sign in to comment.