Skip to content

Commit 158e1e9

Browse files
authored
Changes to publish to Sonatype Central Portal repo (#1431)
1 parent a33b5cb commit 158e1e9

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
distribution: 'temurin'
3939
java-version: ${{ matrix.java_version }}
4040
cache: 'maven'
41-
server-id: sonatype-nexus-snapshots-new
41+
server-id: central-snapshots
4242
server-username: CI_DEPLOY_USERNAME
4343
server-password: CI_DEPLOY_PASSWORD
4444
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -57,8 +57,8 @@ jobs:
5757
- name: Deploy snapshot
5858
if: ${{ matrix.release_build && github.event_name != 'pull_request' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
5959
env:
60-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME3 }}
61-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD3 }}
60+
CI_DEPLOY_USERNAME: ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
61+
CI_DEPLOY_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
6262
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
6363
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
6464
- name: Generate code coverage

pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,21 @@ tools.jackson.core.*;version=${project.version}
6666
<!-- Alas, need to include snapshot reference since otherwise can not find
6767
snapshot of parent... -->
6868
<repositories>
69+
<!-- 13-May-2025, tatu: and now moving to Central Portal -->
6970
<repository>
71+
<id>central-snapshots</id>
72+
<name>Sonatype Central Portal (snapshots)</name>
73+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
74+
<releases><enabled>false</enabled></releases>
75+
<snapshots><enabled>true</enabled></snapshots>
76+
</repository>
77+
<!-- repository>
7078
<id>sonatype-nexus-snapshots-new</id>
7179
<name>Sonatype Nexus Snapshots (new)</name>
7280
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
7381
<releases><enabled>false</enabled></releases>
7482
<snapshots><enabled>true</enabled></snapshots>
75-
</repository>
83+
</repository -->
7684
</repositories>
7785

7886
<build>

0 commit comments

Comments
 (0)