Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 065c144

Browse files
committed
Added maven central and jar signing plugins
1 parent 851f533 commit 065c144

File tree

1 file changed

+46
-4
lines changed

1 file changed

+46
-4
lines changed

pom.xml

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@
102102
<version.findbugs.maven.plugin>3.0.0</version.findbugs.maven.plugin>
103103
<version.cobertura.maven.plugin>2.6</version.cobertura.maven.plugin>
104104
<version.license.maven.plugin>1.8</version.license.maven.plugin>
105+
<version.maven.gpg.plugin>1.5</version.maven.gpg.plugin>
106+
<version.maven.nexus.staging.plugin>1.6.3</version.maven.nexus.staging.plugin>
105107

106108
</properties>
107109

@@ -525,6 +527,37 @@
525527
</executions>
526528
</plugin>
527529

530+
<!-- signing jars plugin -->
531+
532+
<plugin>
533+
<groupId>org.apache.maven.plugins</groupId>
534+
<artifactId>maven-gpg-plugin</artifactId>
535+
<version>${version.maven.gpg.plugin}</version>
536+
<executions>
537+
<execution>
538+
<id>sign-artifacts</id>
539+
<phase>verify</phase>
540+
<goals>
541+
<goal>sign</goal>
542+
</goals>
543+
</execution>
544+
</executions>
545+
</plugin>
546+
547+
<!-- maven central release plugin -->
548+
549+
<plugin>
550+
<groupId>org.sonatype.plugins</groupId>
551+
<artifactId>nexus-staging-maven-plugin</artifactId>
552+
<version>${version.maven.nexus.staging.plugin}</version>
553+
<extensions>true</extensions>
554+
<configuration>
555+
<serverId>ossrh</serverId>
556+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
557+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
558+
</configuration>
559+
</plugin>
560+
528561
<!-- other plugins -->
529562

530563
<plugin>
@@ -655,10 +688,19 @@
655688
</profile>
656689

657690
<profile>
658-
<id>skip-tests</id>
659-
<properties>
660-
<skipTests>true</skipTests>
661-
</properties>
691+
<id>maven-central</id>
692+
<build>
693+
<plugins>
694+
<plugin>
695+
<groupId>org.apache.maven.plugins</groupId>
696+
<artifactId>maven-gpg-plugin</artifactId>
697+
</plugin>
698+
<plugin>
699+
<groupId>org.sonatype.plugins</groupId>
700+
<artifactId>nexus-staging-maven-plugin</artifactId>
701+
</plugin>
702+
</plugins>
703+
</build>
662704
</profile>
663705

664706
</profiles>

0 commit comments

Comments
 (0)