|
169 | 169 | <version>1.1.0</version> |
170 | 170 | </plugin> |
171 | 171 | <plugin> |
172 | | - <groupId>org.sonatype.plugins</groupId> |
173 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
174 | | - <version>1.7.0</version> |
| 172 | + <groupId>org.sonatype.central</groupId> |
| 173 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 174 | + <version>0.8.0</version> |
175 | 175 | </plugin> |
176 | 176 | <plugin> |
177 | 177 | <groupId>org.jacoco</groupId> |
|
601 | 601 | </build> |
602 | 602 | </profile> |
603 | 603 |
|
604 | | - <!-- Deploy SNAPSHOTS to OSSRH --> |
| 604 | + <!-- Deploy SNAPSHOTS to Central Portal --> |
605 | 605 | <profile> |
606 | 606 | <id>snapshot-deploy</id> |
607 | | - <distributionManagement> |
608 | | - <snapshotRepository> |
609 | | - <id>ossrh</id> |
610 | | - <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url> |
611 | | - </snapshotRepository> |
612 | | - </distributionManagement> |
613 | 607 | <build> |
614 | 608 | <plugins> |
615 | 609 | <plugin> |
616 | | - <groupId>org.sonatype.plugins</groupId> |
617 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 610 | + <groupId>org.sonatype.central</groupId> |
| 611 | + <artifactId>central-publishing-maven-plugin</artifactId> |
618 | 612 | <extensions>true</extensions> |
619 | 613 | <configuration> |
620 | | - <serverId>ossrh</serverId> |
621 | | - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
622 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
623 | | - <stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes> |
| 614 | + <publishingServerId>central</publishingServerId> |
| 615 | + <autoPublish>true</autoPublish> |
| 616 | + <waitUntil>published</waitUntil> |
| 617 | + <centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl> |
624 | 618 | </configuration> |
625 | 619 | </plugin> |
626 | 620 | </plugins> |
627 | 621 | </build> |
628 | 622 | </profile> |
629 | 623 |
|
630 | | - <!-- Deploy RELEASES to OSSRH --> |
| 624 | + <!-- Deploy RELEASES to Central Portal --> |
631 | 625 | <profile> |
632 | 626 | <id>release-deploy</id> |
633 | | - <distributionManagement> |
634 | | - <repository> |
635 | | - <id>ossrh</id> |
636 | | - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
637 | | - </repository> |
638 | | - </distributionManagement> |
639 | 627 | <build> |
640 | 628 | <plugins> |
641 | 629 | <plugin> |
642 | | - <groupId>org.sonatype.plugins</groupId> |
643 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
| 630 | + <groupId>org.sonatype.central</groupId> |
| 631 | + <artifactId>central-publishing-maven-plugin</artifactId> |
644 | 632 | <extensions>true</extensions> |
645 | 633 | <configuration> |
646 | | - <serverId>ossrh</serverId> |
647 | | - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
648 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
649 | | - <stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes> |
| 634 | + <publishingServerId>central</publishingServerId> |
| 635 | + <autoPublish>true</autoPublish> |
650 | 636 | </configuration> |
651 | 637 | </plugin> |
652 | 638 | </plugins> |
|
0 commit comments