|
646 | 646 | <plugin> |
647 | 647 | <groupId>org.apache.maven.plugins</groupId> |
648 | 648 | <artifactId>maven-gpg-plugin</artifactId> |
649 | | - <version>1.6</version> |
| 649 | + <version>3.1.0</version> |
650 | 650 | <executions> |
651 | 651 | <execution> |
| 652 | + <id>sign-artifacts</id> |
| 653 | + <phase>verify</phase> |
652 | 654 | <goals> |
653 | | - <!-- Refer: https://maven.apache.org/plugins/maven-gpg-plugin/sign-and-deploy-file-mojo.html --> |
654 | | - <goal>sign-and-deploy-file</goal> |
| 655 | + <goal>sign</goal> |
655 | 656 | </goals> |
656 | | - <phase>deploy</phase> |
657 | 657 | <configuration> |
658 | | - <file>${project.build.directory}/${project.build.finalName}.jar</file> |
659 | | - <repositoryId>ossrh</repositoryId> |
660 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
661 | | - <!-- Prevent gpg from using pinentry programs --> |
662 | 658 | <gpgArguments> |
663 | 659 | <arg>--pinentry-mode</arg> |
664 | 660 | <arg>loopback</arg> |
665 | 661 | </gpgArguments> |
666 | | - <!-- Custom reduced pom file for fat jar --> |
667 | | - <pomFile>${project.basedir}/uber-minimal-pom.xml</pomFile> |
668 | | - <sources>${project.build.directory}/${project.build.finalName}-sources.jar</sources> |
669 | | - <javadoc>${project.build.directory}/${project.build.finalName}-javadoc.jar</javadoc> |
670 | | - <files>${project.build.directory}/${project.build.finalName}-thin.jar</files> |
671 | | - <types>jar</types> |
672 | | - <classifiers>thin</classifiers> |
673 | 662 | </configuration> |
674 | 663 | </execution> |
675 | 664 | </executions> |
676 | 665 | </plugin> |
| 666 | + <plugin> |
| 667 | + <groupId>org.sonatype.central</groupId> |
| 668 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 669 | + <version>0.6.0</version> |
| 670 | + <extensions>true</extensions> |
| 671 | + <configuration> |
| 672 | + <publishingServerId>central</publishingServerId> |
| 673 | + <autoPublish>true</autoPublish> |
| 674 | + <waitUntil>published</waitUntil> |
| 675 | + </configuration> |
| 676 | + </plugin> |
677 | 677 | <plugin> |
678 | 678 | <groupId>org.apache.maven.plugins</groupId> |
679 | 679 | <artifactId>maven-deploy-plugin</artifactId> |
|
682 | 682 | <skip>true</skip> |
683 | 683 | </configuration> |
684 | 684 | </plugin> |
685 | | -<!-- <plugin>--> |
686 | | -<!-- <groupId>org.sonatype.plugins</groupId>--> |
687 | | -<!-- <artifactId>nexus-staging-maven-plugin</artifactId>--> |
688 | | -<!-- <version>1.6.13</version>--> |
689 | | -<!-- <extensions>true</extensions>--> |
690 | | -<!-- <configuration>--> |
691 | | -<!-- <serverId>ossrh</serverId>--> |
692 | | -<!-- <nexusUrl>https://oss.sonatype.org/</nexusUrl>--> |
693 | | -<!-- <autoReleaseAfterClose>true</autoReleaseAfterClose>--> |
694 | | -<!-- <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>--> |
695 | | -<!-- </configuration>--> |
696 | | -<!-- <executions>--> |
697 | | -<!-- <execution>--> |
698 | | -<!-- <id>nexus-deploy</id>--> |
699 | | -<!-- <phase>deploy</phase>--> |
700 | | -<!-- <goals>--> |
701 | | -<!-- <goal>close</goal>--> |
702 | | -<!-- <goal>release</goal>--> |
703 | | -<!-- </goals>--> |
704 | | -<!-- </execution>--> |
705 | | -<!-- </executions>--> |
706 | | -<!-- </plugin>--> |
| 685 | + |
707 | 686 | </plugins> |
708 | 687 | </build> |
709 | 688 | <distributionManagement> |
710 | 689 | <repository> |
711 | | - <id>ossrh</id> |
712 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 690 | + <id>central</id> |
| 691 | + <url>https://central.sonatype.com/api/v1/publisher/deployments</url> |
713 | 692 | </repository> |
714 | 693 | </distributionManagement> |
715 | 694 | </profile> |
|
0 commit comments