Skip to content

Commit 337d422

Browse files
committed
Move GPG signing into release profile.
Closes #201
1 parent 6aa03af commit 337d422

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

Diff for: bom/pom.xml

+30-30
Original file line numberDiff line numberDiff line change
@@ -288,30 +288,6 @@
288288
<pluginManagement>
289289
<plugins>
290290

291-
<!-- Sign JARs -->
292-
293-
<plugin>
294-
<groupId>org.apache.maven.plugins</groupId>
295-
<artifactId>maven-gpg-plugin</artifactId>
296-
<version>3.0.1</version>
297-
<executions>
298-
<execution>
299-
<id>sign-artifacts</id>
300-
<phase>verify</phase>
301-
<goals>
302-
<goal>sign</goal>
303-
</goals>
304-
<configuration>
305-
<gpgArguments>
306-
<arg>--pinentry-mode</arg>
307-
<arg>loopback</arg>
308-
<arg>--no-tty</arg>
309-
</gpgArguments>
310-
</configuration>
311-
</execution>
312-
</executions>
313-
</plugin>
314-
315291
<!-- Deploy to Sonatype OSS Nexus -->
316292

317293
<plugin>
@@ -332,11 +308,6 @@
332308

333309
<plugins>
334310

335-
<plugin>
336-
<groupId>org.apache.maven.plugins</groupId>
337-
<artifactId>maven-gpg-plugin</artifactId>
338-
</plugin>
339-
340311
<plugin>
341312
<groupId>org.sonatype.plugins</groupId>
342313
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -360,7 +331,31 @@
360331
<build>
361332
<pluginManagement>
362333
<plugins>
363-
<!-- Make sure we build on Java 8 with only release dependencies -->
334+
335+
<!-- Sign JARs -->
336+
<plugin>
337+
<groupId>org.apache.maven.plugins</groupId>
338+
<artifactId>maven-gpg-plugin</artifactId>
339+
<version>3.0.1</version>
340+
<executions>
341+
<execution>
342+
<id>sign-artifacts</id>
343+
<phase>verify</phase>
344+
<goals>
345+
<goal>sign</goal>
346+
</goals>
347+
<configuration>
348+
<gpgArguments>
349+
<arg>--pinentry-mode</arg>
350+
<arg>loopback</arg>
351+
<arg>--no-tty</arg>
352+
</gpgArguments>
353+
</configuration>
354+
</execution>
355+
</executions>
356+
</plugin>
357+
358+
<!-- Make sure we build on Java 17 with only release dependencies -->
364359

365360
<plugin>
366361
<groupId>org.apache.maven.plugins</groupId>
@@ -400,6 +395,11 @@
400395

401396
<plugins>
402397

398+
<plugin>
399+
<groupId>org.apache.maven.plugins</groupId>
400+
<artifactId>maven-gpg-plugin</artifactId>
401+
</plugin>
402+
403403
<plugin>
404404
<groupId>org.apache.maven.plugins</groupId>
405405
<artifactId>maven-enforcer-plugin</artifactId>

0 commit comments

Comments
 (0)