Skip to content

Commit fc6dce0

Browse files
committed
More changes
1 parent 0022451 commit fc6dce0

1 file changed

Lines changed: 18 additions & 39 deletions

File tree

pom.xml

Lines changed: 18 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -646,34 +646,34 @@
646646
<plugin>
647647
<groupId>org.apache.maven.plugins</groupId>
648648
<artifactId>maven-gpg-plugin</artifactId>
649-
<version>1.6</version>
649+
<version>3.1.0</version>
650650
<executions>
651651
<execution>
652+
<id>sign-artifacts</id>
653+
<phase>verify</phase>
652654
<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>
655656
</goals>
656-
<phase>deploy</phase>
657657
<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 -->
662658
<gpgArguments>
663659
<arg>--pinentry-mode</arg>
664660
<arg>loopback</arg>
665661
</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>
673662
</configuration>
674663
</execution>
675664
</executions>
676665
</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>
677677
<plugin>
678678
<groupId>org.apache.maven.plugins</groupId>
679679
<artifactId>maven-deploy-plugin</artifactId>
@@ -682,34 +682,13 @@
682682
<skip>true</skip>
683683
</configuration>
684684
</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+
707686
</plugins>
708687
</build>
709688
<distributionManagement>
710689
<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>
713692
</repository>
714693
</distributionManagement>
715694
</profile>

0 commit comments

Comments
 (0)