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 18, 2024
1 parent b81a028 commit 6f91c8e
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
rootProject.name = "rewrite-cucumber-jvm"

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

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

val isCiServer = System.getenv("CI")?.equals("true") ?: false
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 6f91c8e

Please sign in to comment.