|
201 | 201 | <version>1.1.0</version> |
202 | 202 | </plugin> |
203 | 203 | <plugin> |
204 | | - <groupId>org.sonatype.plugins</groupId> |
205 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
206 | | - <version>1.7.0</version> |
| 204 | + <groupId>org.sonatype.central</groupId> |
| 205 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 206 | + <version>0.8.0</version> |
207 | 207 | </plugin> |
208 | 208 | <plugin> |
209 | 209 | <groupId>org.jacoco</groupId> |
|
639 | 639 | </build> |
640 | 640 | </profile> |
641 | 641 |
|
642 | | - <!-- Deploy SNAPSHOTS to OSSRH --> |
| 642 | + <!-- Deploy SNAPSHOTS to Central Portal --> |
643 | 643 | <profile> |
644 | 644 | <id>snapshot-deploy</id> |
645 | | - <distributionManagement> |
646 | | - <snapshotRepository> |
647 | | - <id>ossrh</id> |
648 | | - <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url> |
649 | | - </snapshotRepository> |
650 | | - </distributionManagement> |
651 | 645 | <build> |
652 | 646 | <plugins> |
653 | 647 | <plugin> |
654 | | - <groupId>org.sonatype.plugins</groupId> |
655 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 648 | + <groupId>org.sonatype.central</groupId> |
| 649 | + <artifactId>central-publishing-maven-plugin</artifactId> |
656 | 650 | <extensions>true</extensions> |
657 | 651 | <configuration> |
658 | | - <serverId>ossrh</serverId> |
659 | | - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
660 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
661 | | - <stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes> |
| 652 | + <publishingServerId>central</publishingServerId> |
| 653 | + <autoPublish>true</autoPublish> |
| 654 | + <waitUntil>published</waitUntil> |
| 655 | + <centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl> |
662 | 656 | </configuration> |
663 | 657 | </plugin> |
664 | 658 | </plugins> |
665 | 659 | </build> |
666 | 660 | </profile> |
667 | 661 |
|
668 | | - <!-- Deploy RELEASES to OSSRH --> |
| 662 | + <!-- Deploy RELEASES to Central Portal --> |
669 | 663 | <profile> |
670 | 664 | <id>release-deploy</id> |
671 | | - <distributionManagement> |
672 | | - <repository> |
673 | | - <id>ossrh</id> |
674 | | - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
675 | | - </repository> |
676 | | - </distributionManagement> |
677 | 665 | <build> |
678 | 666 | <plugins> |
679 | 667 | <plugin> |
680 | | - <groupId>org.sonatype.plugins</groupId> |
681 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 668 | + <groupId>org.sonatype.central</groupId> |
| 669 | + <artifactId>central-publishing-maven-plugin</artifactId> |
682 | 670 | <extensions>true</extensions> |
683 | 671 | <configuration> |
684 | | - <serverId>ossrh</serverId> |
685 | | - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
686 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
687 | | - <stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes> |
| 672 | + <publishingServerId>central</publishingServerId> |
| 673 | + <autoPublish>true</autoPublish> |
688 | 674 | </configuration> |
689 | 675 | </plugin> |
690 | 676 | </plugins> |
|
0 commit comments