Skip to content

Commit 751637d

Browse files
committed
Move GPG plugin to signing profile block
1 parent a7f50f0 commit 751637d

File tree

1 file changed

+30
-23
lines changed

1 file changed

+30
-23
lines changed

pom.xml

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
<staging-plugin.version>1.6.7</staging-plugin.version>
3737
<release-plugin.version>2.5.3</release-plugin.version>
3838
<apache-derby.version>10.14.1.0</apache-derby.version>
39-
<skipSigning>true</skipSigning>
4039
</properties>
4140

4241
<scm>
@@ -158,24 +157,6 @@
158157
</execution>
159158
</executions>
160159
</plugin>
161-
<plugin>
162-
<groupId>org.apache.maven.plugins</groupId>
163-
<artifactId>maven-gpg-plugin</artifactId>
164-
<executions>
165-
<execution>
166-
<id>sign-artifacts</id>
167-
<phase>verify</phase>
168-
<goals>
169-
<goal>sign</goal>
170-
</goals>
171-
<configuration>
172-
<keyname>${gpg.keyname}</keyname>
173-
<passphraseServerId>${gpg.keyname}</passphraseServerId>
174-
<skip>${skipSigning}</skip>
175-
</configuration>
176-
</execution>
177-
</executions>
178-
</plugin>
179160
<plugin>
180161
<groupId>org.sonatype.plugins</groupId>
181162
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -201,10 +182,36 @@
201182

202183
<profiles>
203184
<profile>
204-
<id>release</id>
205-
<properties>
206-
<skipSigning>false</skipSigning>
207-
</properties>
185+
<id>release-sign-artifacts</id>
186+
<activation>
187+
<property>
188+
<name>performRelease</name>
189+
<value>true</value>
190+
</property>
191+
</activation>
192+
<build>
193+
<pluginManagement>
194+
</pluginManagement>
195+
<plugins>
196+
<plugin>
197+
<groupId>org.apache.maven.plugins</groupId>
198+
<artifactId>maven-gpg-plugin</artifactId>
199+
<executions>
200+
<execution>
201+
<id>sign-artifacts</id>
202+
<phase>verify</phase>
203+
<goals>
204+
<goal>sign</goal>
205+
</goals>
206+
<configuration>
207+
<keyname>${gpg.keyname}</keyname>
208+
<passphraseServerId>${gpg.keyname}</passphraseServerId>
209+
</configuration>
210+
</execution>
211+
</executions>
212+
</plugin>
213+
</plugins>
214+
</build>
208215
</profile>
209216
</profiles>
210217
</project>

0 commit comments

Comments
 (0)