Skip to content

Commit 72df787

Browse files
authored
Switch to central portal publish (#758)
1 parent cad7739 commit 72df787

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
@@ -33,7 +33,7 @@ jobs:
3333
distribution: 'temurin'
3434
java-version: ${{ matrix.java_version }}
3535
cache: 'maven'
36-
server-id: sonatype-nexus-snapshots-new
36+
server-id: central-snapshots
3737
server-username: CI_DEPLOY_USERNAME
3838
server-password: CI_DEPLOY_PASSWORD
3939
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -47,8 +47,8 @@ jobs:
4747
- name: Deploy snapshot
4848
if: ${{ matrix.release_build && github.event_name != 'pull_request' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
4949
env:
50-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME3 }}
51-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD3 }}
50+
CI_DEPLOY_USERNAME: ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
51+
CI_DEPLOY_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
5252
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5353
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
5454
- name: Generate code coverage

pom.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,11 @@ alternative support for serializing POJOs as XML and deserializing XML as POJOs.
132132
because "jackson-annotations" is published via "old"
133133
-->
134134
<repositories>
135+
<!-- 13-May-2025, tatu: and now moving to Central Portal -->
135136
<repository>
136-
<id>sonatype-nexus-snapshots-new</id>
137-
<name>Sonatype Nexus Snapshots (new)</name>
138-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
137+
<id>central-snapshots</id>
138+
<name>Sonatype Central Portal (snapshots)</name>
139+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
139140
<releases><enabled>false</enabled></releases>
140141
<snapshots><enabled>true</enabled></snapshots>
141142
</repository>

0 commit comments

Comments
 (0)