File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
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 >
You can’t perform that action at this time.
0 commit comments