Skip to content

Commit

Permalink
refactor: Remove Gradle Enterprise (#40)
Browse files Browse the repository at this point in the history
* refactor: Remove Gradle Enterprise

Use this link to re-run the recipe: https://app.moderne.io/builder/AkCg2Jjo6?organizationId=UmVjaXBlcw%3D%3D

Co-authored-by: Moderne <[email protected]>

* Update settings.gradle.kts

---------

Co-authored-by: Moderne <[email protected]>
  • Loading branch information
timtebeek and TeamModerne authored Dec 24, 2024
1 parent 38621c7 commit 2f2f06f
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,35 +1 @@
rootProject.name = "rewrite-polyglot"

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

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

buildScan {
capture {
fileFingerprints = true
}
publishing {
onlyIf {
authenticated
}
}

uploadInBackground = !isCiServer
}
}

0 comments on commit 2f2f06f

Please sign in to comment.