Skip to content

Commit 0b1b622

Browse files
committed
Only enable maven-gpg-plugin during release
performRelease is set by release:perform
1 parent 26d1cc0 commit 0b1b622

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

pom.xml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -220,22 +220,35 @@
220220
</execution>
221221
</executions>
222222
</plugin>
223-
<plugin>
224-
<artifactId>maven-gpg-plugin</artifactId>
225-
<version>1.6</version>
226-
<executions>
227-
<execution>
228-
<id>sign-artifacts</id>
229-
<phase>verify</phase>
230-
<goals>
231-
<goal>sign</goal>
232-
</goals>
233-
</execution>
234-
</executions>
235-
</plugin>
236223
</plugins>
237224
</build>
238225
<profiles>
226+
<profile>
227+
<id>release-sign-artifacts</id>
228+
<activation>
229+
<property>
230+
<name>performRelease</name>
231+
<value>true</value>
232+
</property>
233+
</activation>
234+
<build>
235+
<plugins>
236+
<plugin>
237+
<artifactId>maven-gpg-plugin</artifactId>
238+
<version>1.6</version>
239+
<executions>
240+
<execution>
241+
<id>sign-artifacts</id>
242+
<phase>verify</phase>
243+
<goals>
244+
<goal>sign</goal>
245+
</goals>
246+
</execution>
247+
</executions>
248+
</plugin>
249+
</plugins>
250+
</build>
251+
</profile>
239252
<profile>
240253
<id>test-output</id>
241254
<properties>

0 commit comments

Comments
 (0)