Skip to content

Commit 51c807c

Browse files
committed
move gpg plugin into ta release profile so that the build can be performed on travis
1 parent 9c55de8 commit 51c807c

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

pom.xml

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -197,20 +197,6 @@
197197
</execution>
198198
</executions>
199199
</plugin>
200-
<plugin>
201-
<groupId>org.apache.maven.plugins</groupId>
202-
<artifactId>maven-gpg-plugin</artifactId>
203-
<version>1.5</version>
204-
<executions>
205-
<execution>
206-
<id>sign-artifacts</id>
207-
<phase>verify</phase>
208-
<goals>
209-
<goal>sign</goal>
210-
</goals>
211-
</execution>
212-
</executions>
213-
</plugin>
214200
<plugin>
215201
<groupId>org.apache.maven.plugins</groupId>
216202
<artifactId>maven-compiler-plugin</artifactId>
@@ -274,4 +260,33 @@
274260
</plugins>
275261
</reporting>
276262

263+
<profiles>
264+
<profile>
265+
<id>release-sign-artifacts</id>
266+
<activation>
267+
<property>
268+
<name>performRelease</name>
269+
<value>true</value>
270+
</property>
271+
</activation>
272+
<build>
273+
<plugins>
274+
<plugin>
275+
<groupId>org.apache.maven.plugins</groupId>
276+
<artifactId>maven-gpg-plugin</artifactId>
277+
<version>1.5</version>
278+
<executions>
279+
<execution>
280+
<id>sign-artifacts</id>
281+
<phase>verify</phase>
282+
<goals>
283+
<goal>sign</goal>
284+
</goals>
285+
</execution>
286+
</executions>
287+
</plugin>
288+
</plugins>
289+
</build>
290+
</profile>
291+
</profiles>
277292
</project>

0 commit comments

Comments
 (0)