Skip to content

Commit 156ec7e

Browse files
authored
Switch publishing to Sonatype Central Portal (#64)
1 parent ef459b0 commit 156ec7e

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

pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@
7171
because "jackson-annotations" is published via "old"
7272
-->
7373
<repositories>
74+
<!-- 13-May-2025, tatu: and now moving to Central Portal -->
7475
<repository>
75-
<id>sonatype-nexus-snapshots-new</id>
76-
<name>Sonatype Nexus Snapshots (new)</name>
77-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
76+
<id>central-snapshots</id>
77+
<name>Sonatype Central Portal (snapshots)</name>
78+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
7879
<releases><enabled>false</enabled></releases>
7980
<snapshots><enabled>true</enabled></snapshots>
8081
</repository>

0 commit comments

Comments
 (0)