Skip to content

Commit

Permalink
Add develocity (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek authored Aug 15, 2024
1 parent e812a0e commit 22972f9
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
}
}

rootProject.name = "rewrite-struts"

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

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(develocity.buildCache) {
isEnabled = true
isPush = isCiServer && authenticated
}
}

buildScan {
capture {
fileFingerprints = true
}

publishing {
onlyIf {
authenticated
}
}

uploadInBackground = !isCiServer
}
}

0 comments on commit 22972f9

Please sign in to comment.