Skip to content

Commit 0dc5682

Browse files
committed
Fix publishing to use Central Portal
1 parent c7adc3f commit 0dc5682

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
distribution: 'temurin'
2929
java-version: ${{ matrix.java_version }}
3030
cache: 'maven'
31-
server-id: sonatype-nexus-snapshots
31+
server-id: central-snapshots
3232
server-username: CI_DEPLOY_USERNAME
3333
server-password: CI_DEPLOY_PASSWORD
3434
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -42,8 +42,8 @@ jobs:
4242
- name: Deploy snapshot
4343
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
4444
env:
45-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
46-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
45+
CI_DEPLOY_USERNAME: ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
46+
CI_DEPLOY_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
4747
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
4848
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
4949
- name: Generate code coverage
@@ -54,5 +54,5 @@ jobs:
5454
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
5555
with:
5656
token: ${{ secrets.CODECOV_TOKEN }}
57-
file: ./target/site/jacoco/jacoco.xml
57+
files: ./target/site/jacoco/jacoco.xml
5858
flags: unittests

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ not datatype, data format, or JAX-RS provider modules.
8080
</dependency>
8181
</dependencies>
8282

83-
<!-- Alas, need to include snapshot reference since otherwise can not find
84-
snapshot of parent... -->
83+
<!-- Need to include snapshot reference to find snapshot of parent -->
8584
<repositories>
85+
<!-- 13-May-2025, tatu: now access snapshots via Central Portal -->
8686
<repository>
87-
<id>sonatype-nexus-snapshots</id>
88-
<name>Sonatype Nexus Snapshots</name>
89-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
87+
<id>central-snapshots</id>
88+
<name>Sonatype Central Portal (snapshots)</name>
89+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
9090
<releases><enabled>false</enabled></releases>
9191
<snapshots><enabled>true</enabled></snapshots>
9292
</repository>

0 commit comments

Comments
 (0)