Skip to content

Commit 0584bc4

Browse files
committed
HBX-2936 Move gpg signing to a release profile
1 parent 6e6ac3a commit 0584bc4

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

pom.xml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,6 @@
351351
</plugins>
352352
</pluginManagement>
353353
<plugins>
354-
<!-- Skip the deploy plugin explicitly: we use nexus-staging-maven-plugin instead -->
355-
<plugin>
356-
<groupId>org.apache.maven.plugins</groupId>
357-
<artifactId>maven-gpg-plugin</artifactId>
358-
</plugin>
359354
<!-- Skip the deploy plugin explicitly: we use nexus-staging-maven-plugin instead -->
360355
<plugin>
361356
<groupId>org.apache.maven.plugins</groupId>
@@ -393,6 +388,24 @@
393388
</build>
394389

395390
<profiles>
391+
<profile>
392+
<id>release</id>
393+
<activation>
394+
<property>
395+
<name>performRelease</name>
396+
<value>true</value>
397+
</property>
398+
</activation>
399+
<build>
400+
<plugins>
401+
<plugin>
402+
<groupId>org.apache.maven.plugins</groupId>
403+
<artifactId>maven-gpg-plugin</artifactId>
404+
</plugin>
405+
</plugins>
406+
</build>
407+
</profile>
408+
396409
<!--
397410
WARNING: this MUST be the very last profile,
398411
so that the "report" module is the very last module,

0 commit comments

Comments
 (0)