Skip to content

Commit c2ba980

Browse files
committed
Switch to publish via Sonatype Central Portal
1 parent bc6e4de commit c2ba980

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
distribution: 'temurin'
3737
java-version: ${{ matrix.java_version }}
3838
cache: 'maven'
39-
server-id: sonatype-nexus-snapshots-new
39+
server-id: central-snapshots
4040
server-username: CI_DEPLOY_USERNAME
4141
server-password: CI_DEPLOY_PASSWORD
4242
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-
@@ -55,7 +55,7 @@ jobs:
5555
- name: Deploy snapshot
5656
if: ${{ github.event_name != 'pull_request' && matrix.release_build && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
5757
env:
58-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME3 }}
59-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD3 }}
58+
CI_DEPLOY_USERNAME: ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
59+
CI_DEPLOY_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
6060
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
6161
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy

pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,11 @@
279279
<!-- Alas, need to include snapshot reference since otherwise can not find
280280
snapshot of parent... -->
281281
<repositories>
282+
<!-- 13-May-2025, tatu: and now moving to Central Portal -->
282283
<repository>
283-
<id>sonatype-nexus-snapshots-new</id>
284-
<name>Sonatype Nexus Snapshots (new)</name>
285-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
284+
<id>central-snapshots</id>
285+
<name>Sonatype Central Portal (snapshots)</name>
286+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
286287
<releases><enabled>false</enabled></releases>
287288
<snapshots><enabled>true</enabled></snapshots>
288289
</repository>

0 commit comments

Comments
 (0)