Skip to content

Commit 18c3809

Browse files
committed
Introduce maven central plugin to replace ossrh. (#819)
1 parent 2b883cb commit 18c3809

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

pom.xml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -298,29 +298,17 @@
298298
-->
299299
<id>release</id>
300300

301-
<distributionManagement>
302-
<snapshotRepository>
303-
<id>ossrh</id>
304-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
305-
</snapshotRepository>
306-
<repository>
307-
<id>ossrh</id>
308-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
309-
</repository>
310-
</distributionManagement>
311-
312301
<build>
313302
<plugins>
314-
<!-- staging for OSSRH -->
315303
<plugin>
316-
<groupId>org.sonatype.plugins</groupId>
317-
<artifactId>nexus-staging-maven-plugin</artifactId>
318-
<version>1.6.7</version>
304+
<groupId>org.sonatype.central</groupId>
305+
<artifactId>central-publishing-maven-plugin</artifactId>
306+
<version>0.7.0</version>
319307
<extensions>true</extensions>
320308
<configuration>
321-
<serverId>ossrh</serverId>
322-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
323-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
309+
<publishingServerId>central</publishingServerId>
310+
<autoPublish>true</autoPublish>
311+
<waitUntil>published</waitUntil>
324312
</configuration>
325313
</plugin>
326314

0 commit comments

Comments
 (0)