Skip to content

Commit

Permalink
update gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
MBoegers committed Jan 30, 2025
1 parent ca777c3 commit 3232e04
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 7 deletions.
7 changes: 0 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,3 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-engine:latest.release")
testImplementation("org.junit-pioneer:junit-pioneer:2.3.0")
}

nexusPublishing {
repositories.getByName("sonatype") {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
40 changes: 40 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
rootProject.name = "rewrite-rewrite"

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 3232e04

Please sign in to comment.