Skip to content

Commit

Permalink
Add Develocity
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Jan 17, 2025
1 parent fec6796 commit aff2b65
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
release:
uses: openrewrite/gh-automation/.github/workflows/publish-gradle.yml@main
secrets:
gradle_enterprise_access_key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
ossrh_username: ${{ secrets.OSSRH_USERNAME }}
ossrh_token: ${{ secrets.OSSRH_TOKEN }}
ossrh_signing_key: ${{ secrets.OSSRH_SIGNING_KEY }}
Expand Down
39 changes: 39 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1,40 @@
rootProject.name = "rewrite-polyglot"

pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
}
}

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 aff2b65

Please sign in to comment.