Skip to content

Commit 4b84d92

Browse files
committed
Migrate ossrh to central publisher portal
https://central.sonatype.org/publish/publish-portal-maven
1 parent 5ac65c2 commit 4b84d92

2 files changed

Lines changed: 6 additions & 18 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
architecture: 'x64'
193193
distribution: temurin
194194
cache: maven
195-
server-id: ossrh
195+
server-id: central
196196
server-username: SONATYPE_USER
197197
server-password: SONATYPE_PW
198198

pom.xml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -492,14 +492,13 @@
492492
</plugin>
493493

494494
<plugin>
495-
<groupId>org.sonatype.plugins</groupId>
496-
<artifactId>nexus-staging-maven-plugin</artifactId>
497-
<version>1.7.0</version>
495+
<groupId>org.sonatype.central</groupId>
496+
<artifactId>central-publishing-maven-plugin</artifactId>
497+
<version>0.8.0</version>
498498
<extensions>true</extensions>
499499
<configuration>
500-
<serverId>ossrh</serverId>
501-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
502-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
500+
<publishingServerId>central</publishingServerId>
501+
<autoPublish>true</autoPublish>
503502
</configuration>
504503
</plugin>
505504

@@ -1011,15 +1010,4 @@
10111010
</build>
10121011
</profile>
10131012
</profiles>
1014-
1015-
<distributionManagement>
1016-
<snapshotRepository>
1017-
<id>ossrh</id>
1018-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
1019-
</snapshotRepository>
1020-
<repository>
1021-
<id>ossrh</id>
1022-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
1023-
</repository>
1024-
</distributionManagement>
10251013
</project>

0 commit comments

Comments
 (0)