|
616 | 616 | <plugin> |
617 | 617 | <groupId>org.apache.maven.plugins</groupId> |
618 | 618 | <artifactId>maven-source-plugin</artifactId> |
619 | | - <version>3.3.0</version> |
| 619 | + <version>3.3.1</version> |
620 | 620 | <executions> |
621 | 621 | <execution> |
622 | 622 | <id>attach-sources</id> |
|
629 | 629 | <plugin> |
630 | 630 | <groupId>org.apache.maven.plugins</groupId> |
631 | 631 | <artifactId>maven-javadoc-plugin</artifactId> |
632 | | - <version>3.6.0</version> |
| 632 | + <version>3.8.0</version> |
633 | 633 | <configuration> |
634 | 634 | <doclint>none</doclint> |
635 | 635 | <sourcepath>${project.build.sourceDirectory}:${project.build.directory}/generated-sources/annotations</sourcepath> |
|
647 | 647 | <groupId>org.apache.maven.plugins</groupId> |
648 | 648 | <artifactId>maven-gpg-plugin</artifactId> |
649 | 649 | <version>1.6</version> |
| 650 | + <configuration> |
| 651 | + <gpgArguments> |
| 652 | + <arg>--batch</arg> |
| 653 | + <arg>--pinentry-mode</arg> |
| 654 | + <arg>loopback</arg> |
| 655 | + <arg>--no-tty</arg> |
| 656 | + <arg>--yes</arg> |
| 657 | + </gpgArguments> |
| 658 | + <passphrase>${env.GPG_PASSPHRASE}</passphrase> |
| 659 | + <!-- Custom reduced pom file for fat jar --> |
| 660 | + <pomFile>${project.basedir}/uber-minimal-pom.xml</pomFile> |
| 661 | + <sources>${project.build.directory}/${project.build.finalName}-sources.jar</sources> |
| 662 | + <javadoc>${project.build.directory}/${project.build.finalName}-javadoc.jar</javadoc> |
| 663 | + <files>${project.build.directory}/${project.build.finalName}-thin.jar</files> |
| 664 | + <types>jar</types> |
| 665 | + <classifiers>thin</classifiers> |
| 666 | + </configuration> |
650 | 667 | <executions> |
651 | 668 | <execution> |
| 669 | + <id>sign-artifacts</id> |
652 | 670 | <goals> |
653 | | - <!-- Refer: https://maven.apache.org/plugins/maven-gpg-plugin/sign-and-deploy-file-mojo.html --> |
654 | | - <goal>sign-and-deploy-file</goal> |
| 671 | + <goal>sign</goal> |
655 | 672 | </goals> |
656 | | - <phase>deploy</phase> |
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 | | - <gpgArguments> |
663 | | - <arg>--pinentry-mode</arg> |
664 | | - <arg>loopback</arg> |
665 | | - </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 | | - </configuration> |
| 673 | + <phase>verify</phase> |
674 | 674 | </execution> |
675 | 675 | </executions> |
676 | 676 | </plugin> |
677 | 677 | <plugin> |
678 | | - <groupId>org.apache.maven.plugins</groupId> |
679 | | - <artifactId>maven-deploy-plugin</artifactId> |
680 | | - <version>2.8.2</version> |
| 678 | + <groupId>org.sonatype.central</groupId> |
| 679 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 680 | + <version>0.8.0</version> |
| 681 | + <extensions>true</extensions> |
681 | 682 | <configuration> |
682 | | - <skip>true</skip> |
| 683 | + <publishingServerId>central</publishingServerId> |
| 684 | + <autoPublish>true</autoPublish> |
| 685 | + <waitUntil>published</waitUntil> |
683 | 686 | </configuration> |
684 | 687 | </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>--> |
707 | 688 | </plugins> |
708 | 689 | </build> |
709 | | - <distributionManagement> |
710 | | - <repository> |
711 | | - <id>ossrh</id> |
712 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
713 | | - </repository> |
714 | | - </distributionManagement> |
715 | 690 | </profile> |
716 | 691 | </profiles> |
717 | 692 | </project> |
0 commit comments