Skip to content

Commit 9b7d431

Browse files
release(package-publishing): add central maven plugin for migration (#71)
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 d8d2797 commit 9b7d431

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-interfaces-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.squareup.okhttp3</groupId>
@@ -129,16 +118,17 @@
129118
</configuration>
130119
</plugin>
131120
<plugin>
132-
<groupId>org.sonatype.plugins</groupId>
133-
<artifactId>nexus-staging-maven-plugin</artifactId>
134-
<version>1.6.7</version>
135-
<extensions>true</extensions>
136-
<configuration>
137-
<serverId>ossrh</serverId>
138-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
139-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
121+
<groupId>org.sonatype.central</groupId>
122+
<artifactId>central-publishing-maven-plugin</artifactId>
123+
<version>0.8.0</version>
124+
<extensions>true</extensions>
125+
<configuration>
126+
<publishingServerId>ossrh</publishingServerId>
127+
<tokenAuth>true</tokenAuth>
128+
<autoPublish>true</autoPublish>
129+
<waitUntil>published</waitUntil>
140130
</configuration>
141-
</plugin>
131+
</plugin>
142132
<plugin>
143133
<groupId>org.apache.maven.plugins</groupId>
144134
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)