Skip to content

Commit 92e5a11

Browse files
cicd: Deleted org.sonatype.plugins:nexus-staging-maven-plugin and distribution management Added central-publishing-maven-plugin #TASK-7783
1 parent 5db1c8d commit 92e5a11

1 file changed

Lines changed: 13 additions & 16 deletions

File tree

pom.xml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -309,16 +309,6 @@
309309
<profiles>
310310
<profile>
311311
<id>deploy-maven</id>
312-
<distributionManagement>
313-
<repository>
314-
<id>ossrh</id>
315-
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
316-
</repository>
317-
<snapshotRepository>
318-
<id>ossrh</id>
319-
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
320-
</snapshotRepository>
321-
</distributionManagement>
322312
<build>
323313
<plugins>
324314
<plugin>
@@ -371,17 +361,24 @@
371361
</execution>
372362
</executions>
373363
</plugin>
364+
<!-- Unified publishing plugin for Sonatype Central (releases & snapshots) -->
374365
<plugin>
375-
<groupId>org.sonatype.plugins</groupId>
376-
<artifactId>nexus-staging-maven-plugin</artifactId>
377-
<version>1.6.8</version>
366+
<groupId>org.sonatype.central</groupId>
367+
<artifactId>central-publishing-maven-plugin</artifactId>
368+
<version>0.8.0</version>
378369
<extensions>true</extensions>
379370
<configuration>
380-
<serverId>ossrh</serverId>
381-
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/</nexusUrl>
382-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
371+
<!-- Must match the <server><id>ossrh</id> in your settings.xml -->
372+
<publishingServerId>ossrh</publishingServerId>
373+
<!-- Automatically close and release staging repositories -->
374+
<autoPublish>true</autoPublish>
375+
<!-- Wait until artifacts are actually published -->
376+
<waitUntil>published</waitUntil>
377+
<!-- Skip already published components in multimodule builds -->
378+
<ignorePublishedComponents>true</ignorePublishedComponents>
383379
</configuration>
384380
</plugin>
381+
385382
</plugins>
386383
</build>
387384
</profile>

0 commit comments

Comments
 (0)