Skip to content

Commit 52d096f

Browse files
committed
Configure GPG signing after packaging
Javadoc and source JAR files were not signed. It seems it's a matter of declaring the GPG plugin after the 2 other plugins, at least if we don't want to mess with phases.
1 parent 278430d commit 52d096f

File tree

1 file changed

+55
-49
lines changed

1 file changed

+55
-49
lines changed

pom.xml

+55-49
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.rabbitmq</groupId>
66
<artifactId>stream-client</artifactId>
7-
<version>0.2.0-SNAPSHOT</version>
7+
<version>0.1.0-SNAPSHOT</version>
88

99
<name>RabbitMQ Stream Java Client</name>
1010
<description>The RabbitMQ Stream Java client library allows Java applications to interface with
@@ -631,23 +631,7 @@
631631
<id>snapshots</id>
632632
<build>
633633
<plugins>
634-
<plugin>
635-
<groupId>org.apache.maven.plugins</groupId>
636-
<artifactId>maven-gpg-plugin</artifactId>
637-
<version>${maven.gpg.plugin.version}</version>
638-
<executions>
639-
<execution>
640-
<id>sign-artifacts</id>
641-
<phase>package</phase>
642-
<goals>
643-
<goal>sign</goal>
644-
</goals>
645-
<configuration>
646-
<keyname>${gpg.keyname}</keyname>
647-
</configuration>
648-
</execution>
649-
</executions>
650-
</plugin>
634+
651635
<plugin>
652636
<groupId>org.apache.maven.plugins</groupId>
653637
<artifactId>maven-source-plugin</artifactId>
@@ -679,20 +663,6 @@
679663
</executions>
680664
</plugin>
681665

682-
</plugins>
683-
</build>
684-
<distributionManagement>
685-
<snapshotRepository>
686-
<id>ossrh</id>
687-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
688-
</snapshotRepository>
689-
</distributionManagement>
690-
</profile>
691-
692-
<profile>
693-
<id>milestone</id>
694-
<build>
695-
<plugins>
696666
<plugin>
697667
<groupId>org.apache.maven.plugins</groupId>
698668
<artifactId>maven-gpg-plugin</artifactId>
@@ -710,6 +680,22 @@
710680
</execution>
711681
</executions>
712682
</plugin>
683+
684+
</plugins>
685+
</build>
686+
<distributionManagement>
687+
<snapshotRepository>
688+
<id>ossrh</id>
689+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
690+
</snapshotRepository>
691+
</distributionManagement>
692+
</profile>
693+
694+
<profile>
695+
<id>milestone</id>
696+
<build>
697+
<plugins>
698+
713699
<plugin>
714700
<groupId>org.apache.maven.plugins</groupId>
715701
<artifactId>maven-source-plugin</artifactId>
@@ -740,6 +726,25 @@
740726
</execution>
741727
</executions>
742728
</plugin>
729+
730+
<plugin>
731+
<groupId>org.apache.maven.plugins</groupId>
732+
<artifactId>maven-gpg-plugin</artifactId>
733+
<version>${maven.gpg.plugin.version}</version>
734+
<executions>
735+
<execution>
736+
<id>sign-artifacts</id>
737+
<phase>package</phase>
738+
<goals>
739+
<goal>sign</goal>
740+
</goals>
741+
<configuration>
742+
<keyname>${gpg.keyname}</keyname>
743+
</configuration>
744+
</execution>
745+
</executions>
746+
</plugin>
747+
743748
</plugins>
744749
</build>
745750
<distributionManagement>
@@ -768,23 +773,6 @@
768773
</configuration>
769774
</plugin>
770775

771-
<plugin>
772-
<groupId>org.apache.maven.plugins</groupId>
773-
<artifactId>maven-gpg-plugin</artifactId>
774-
<version>${maven.gpg.plugin.version}</version>
775-
<executions>
776-
<execution>
777-
<id>sign-artifacts</id>
778-
<phase>package</phase>
779-
<goals>
780-
<goal>sign</goal>
781-
</goals>
782-
<configuration>
783-
<keyname>${gpg.keyname}</keyname>
784-
</configuration>
785-
</execution>
786-
</executions>
787-
</plugin>
788776
<plugin>
789777
<groupId>org.apache.maven.plugins</groupId>
790778
<artifactId>maven-source-plugin</artifactId>
@@ -816,6 +804,24 @@
816804
</executions>
817805
</plugin>
818806

807+
<plugin>
808+
<groupId>org.apache.maven.plugins</groupId>
809+
<artifactId>maven-gpg-plugin</artifactId>
810+
<version>${maven.gpg.plugin.version}</version>
811+
<executions>
812+
<execution>
813+
<id>sign-artifacts</id>
814+
<phase>package</phase>
815+
<goals>
816+
<goal>sign</goal>
817+
</goals>
818+
<configuration>
819+
<keyname>${gpg.keyname}</keyname>
820+
</configuration>
821+
</execution>
822+
</executions>
823+
</plugin>
824+
819825
</plugins>
820826
</build>
821827
<distributionManagement>

0 commit comments

Comments
 (0)