From 5d5d6e68da47fa41ebffd4aeee42e9898a16abba Mon Sep 17 00:00:00 2001 From: Patrik Korytar Date: Mon, 13 Jul 2026 10:04:02 +0200 Subject: [PATCH 1/2] Rename SBT Sonatype Snapshots to new URL --- .github/workflows/sbt-ci.yml | 2 +- .github/workflows/sbt-snapshot.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sbt-ci.yml b/.github/workflows/sbt-ci.yml index b252e0d..2aab77b 100644 --- a/.github/workflows/sbt-ci.yml +++ b/.github/workflows/sbt-ci.yml @@ -19,7 +19,7 @@ on: type: string default: | resolvers ++= Seq( - "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots", + "Sonatype Snapshots" at "https://central.sonatype.com/repository/maven-snapshots", "Artima" at "https://repo.artima.com/releases", "MRRC" at "https://maven.repository.redhat.com/ga/" ) diff --git a/.github/workflows/sbt-snapshot.yml b/.github/workflows/sbt-snapshot.yml index 3cb5563..8eb2048 100644 --- a/.github/workflows/sbt-snapshot.yml +++ b/.github/workflows/sbt-snapshot.yml @@ -23,7 +23,7 @@ on: type: string default: | resolvers ++= Seq( - "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots", + "Sonatype Snapshots" at "https://central.sonatype.com/repository/maven-snapshots", "Artima" at "https://repo.artima.com/releases", "MRRC" at "https://maven.repository.redhat.com/ga/" ) From 7d453c56e10f8190cdf431b3f4e25b3ac3f65382 Mon Sep 17 00:00:00 2001 From: Patrik Korytar Date: Mon, 13 Jul 2026 10:13:20 +0200 Subject: [PATCH 2/2] Make SBT snapshot workflow generic in realm/host params --- .github/workflows/sbt-snapshot.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sbt-snapshot.yml b/.github/workflows/sbt-snapshot.yml index 8eb2048..56c7ea0 100644 --- a/.github/workflows/sbt-snapshot.yml +++ b/.github/workflows/sbt-snapshot.yml @@ -32,6 +32,21 @@ on: required: false type: string default: "clean; compile; +test" + snapshot_realm: + description: "Realm of the snapshot repository. Default: Sonatype Nexus Repository Manager" + required: false + type: string + default: "Sonatype Nexus Repository Manager" + snapshot_host: + description: "Host of the snapshot repository. Default: central.sonatype.com" + required: false + type: string + default: "central.sonatype.com" + snapshot_deploy_command: + description: "The snapshot command to use. Default: sbt -v publish" + required: false + type: string + default: "sbt -v publish" secrets: SNAPSHOT_USER: @@ -68,11 +83,14 @@ jobs: env: SNAPSHOT_USER: ${{ secrets.SNAPSHOT_USER }} SNAPSHOT_PASSWORD: ${{ secrets.SNAPSHOT_PASSWORD }} + SNAPSHOT_REALM: ${{ inputs.snapshot_realm }} + SNAPSHOT_HOST: ${{ inputs.snapshot_host }} + SNAPSHOT_DEPLOY_COMMAND: ${{ inputs.snapshot_deploy_command }} run: | mkdir -p "$HOME/.sbt" printf '%s\n' \ - "realm=Sonatype Nexus Repository Manager" \ - "host=repository.jboss.org" \ + "realm=$SNAPSHOT_REALM" \ + "host=$SNAPSHOT_HOST" \ "user=$SNAPSHOT_USER" \ "password=$SNAPSHOT_PASSWORD" > "$HOME/.sbt/.credentials" - sbt -v publish < /dev/null + bash -c "$SNAPSHOT_DEPLOY_COMMAND" < /dev/null