Skip to content

Commit 2405d50

Browse files
committed
Use OSSRH staging API compatibility endpoint for Maven Central
Switch nexus-staging-maven-plugin to point to the new OSSRH staging compatibility URL (ossrh-staging-api.central.sonatype.com) instead of the deprecated oss.sonatype.org endpoint.
1 parent 6e3dcf3 commit 2405d50

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
distribution: "temurin"
1818
java-version: "8"
19-
server-id: central
19+
server-id: ossrh
2020
server-username: OSSRH_USERNAME
2121
server-password: OSSRH_PASSWORD
2222
gpg-private-key: ${{ secrets.OSSRH_GPG_PRIVATE_KEY }}

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -479,14 +479,14 @@
479479
</executions>
480480
</plugin>
481481
<plugin>
482-
<groupId>org.sonatype.central</groupId>
483-
<artifactId>central-publishing-maven-plugin</artifactId>
484-
<version>0.7.0</version>
482+
<groupId>org.sonatype.plugins</groupId>
483+
<artifactId>nexus-staging-maven-plugin</artifactId>
484+
<version>1.6.8</version>
485485
<extensions>true</extensions>
486486
<configuration>
487-
<publishingServerId>central</publishingServerId>
488-
<autoPublish>true</autoPublish>
489-
<waitUntil>published</waitUntil>
487+
<serverId>ossrh</serverId>
488+
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/service/local/</nexusUrl>
489+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
490490
</configuration>
491491
</plugin>
492492
</plugins>

0 commit comments

Comments
 (0)