Skip to content

Commit 0a7131d

Browse files
author
Trevor Bernard
committed
Fix issue zeromq#197 - Only sign artifacts when it's time to release
1 parent 9ba0115 commit 0a7131d

1 file changed

Lines changed: 26 additions & 13 deletions

File tree

pom.xml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,32 @@
146146
</snapshotRepository>
147147
</distributionManagement>
148148
</profile>
149+
<profile>
150+
<id>release-sign-artifacts</id>
151+
<activation>
152+
<property>
153+
<name>performRelease</name>
154+
<value>true</value>
155+
</property>
156+
</activation>
157+
<build>
158+
<plugins>
159+
<plugin>
160+
<groupId>org.apache.maven.plugins</groupId>
161+
<artifactId>maven-gpg-plugin</artifactId>
162+
<executions>
163+
<execution>
164+
<id>sign-artifacts</id>
165+
<phase>verify</phase>
166+
<goals>
167+
<goal>sign</goal>
168+
</goals>
169+
</execution>
170+
</executions>
171+
</plugin>
172+
</plugins>
173+
</build>
174+
</profile>
149175
</profiles>
150176
<dependencies>
151177
<dependency>
@@ -159,19 +185,6 @@
159185
<sourceDirectory>src</sourceDirectory>
160186
<testSourceDirectory>test/src</testSourceDirectory>
161187
<plugins>
162-
<plugin>
163-
<groupId>org.apache.maven.plugins</groupId>
164-
<artifactId>maven-gpg-plugin</artifactId>
165-
<executions>
166-
<execution>
167-
<id>sign-artifacts</id>
168-
<phase>verify</phase>
169-
<goals>
170-
<goal>sign</goal>
171-
</goals>
172-
</execution>
173-
</executions>
174-
</plugin>
175188
<plugin>
176189
<artifactId>maven-assembly-plugin</artifactId>
177190
<version>${maven-assembly-plugin.version}</version>

0 commit comments

Comments
 (0)