Skip to content

Commit 4b5c98d

Browse files
authored
Switch to Sonatype Central Portal publishing (#592)
1 parent 77818a2 commit 4b5c98d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
distribution: 'temurin'
3333
java-version: ${{ matrix.java_version }}
3434
cache: 'maven'
35-
server-id: sonatype-nexus-snapshots-new
35+
server-id: central-snapshots
3636
server-username: CI_DEPLOY_USERNAME
3737
server-password: CI_DEPLOY_PASSWORD
3838
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -46,8 +46,8 @@ jobs:
4646
- name: Deploy snapshot
4747
if: ${{ matrix.release_build && github.event_name != 'pull_request' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
4848
env:
49-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME3 }}
50-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD3 }}
49+
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
50+
CI_DEPLOY_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
5151
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5252
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
5353
- name: Generate code coverage

pom.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@
8686
because "jackson-annotations" is published via "old"
8787
-->
8888
<repositories>
89+
<!-- 13-May-2025, tatu: and now moving to Central Portal -->
8990
<repository>
90-
<id>sonatype-nexus-snapshots-new</id>
91-
<name>Sonatype Nexus Snapshots (new)</name>
92-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
91+
<id>central-snapshots</id>
92+
<name>Sonatype Central Portal (snapshots)</name>
93+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
9394
<releases><enabled>false</enabled></releases>
9495
<snapshots><enabled>true</enabled></snapshots>
9596
</repository>

0 commit comments

Comments
 (0)