Skip to content

Commit 2d36eb3

Browse files
ci(package-publishing): add central maven plugin for migration (#131)
This plugin is required to support publishing via the Sonatype Central Portal as OSSRH is reaching end-of-life on June 30, 2025.
1 parent 2e65731 commit 2d36eb3

1 file changed

Lines changed: 10 additions & 20 deletions

File tree

pom.xml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@
3434
<url>https://github.com/apimatic/core-lib-java</url>
3535
</scm>
3636

37-
<distributionManagement>
38-
<snapshotRepository>
39-
<id>ossrh</id>
40-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
41-
</snapshotRepository>
42-
<repository>
43-
<id>ossrh</id>
44-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
45-
</repository>
46-
</distributionManagement>
47-
4837
<dependencies>
4938
<dependency>
5039
<groupId>com.fasterxml.jackson.core</groupId>
@@ -202,16 +191,17 @@
202191
</configuration>
203192
</plugin>
204193
<plugin>
205-
<groupId>org.sonatype.plugins</groupId>
206-
<artifactId>nexus-staging-maven-plugin</artifactId>
207-
<version>1.6.7</version>
208-
<extensions>true</extensions>
209-
<configuration>
210-
<serverId>ossrh</serverId>
211-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
212-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
194+
<groupId>org.sonatype.central</groupId>
195+
<artifactId>central-publishing-maven-plugin</artifactId>
196+
<version>0.8.0</version>
197+
<extensions>true</extensions>
198+
<configuration>
199+
<publishingServerId>ossrh</publishingServerId>
200+
<tokenAuth>true</tokenAuth>
201+
<autoPublish>true</autoPublish>
202+
<waitUntil>published</waitUntil>
213203
</configuration>
214-
</plugin>
204+
</plugin>
215205
<plugin>
216206
<groupId>org.apache.maven.plugins</groupId>
217207
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)