Skip to content

Commit d6fb3b0

Browse files
committed
Move GPG signing into release profile.
Closes #2214
1 parent 75786c3 commit d6fb3b0

File tree

1 file changed

+22
-29
lines changed

1 file changed

+22
-29
lines changed

pom.xml

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,28 @@
7777
<id>release</id>
7878
<build>
7979
<plugins>
80+
<!-- Sign JARs -->
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-gpg-plugin</artifactId>
84+
<version>3.0.1</version>
85+
<executions>
86+
<execution>
87+
<id>sign-artifacts</id>
88+
<phase>verify</phase>
89+
<goals>
90+
<goal>sign</goal>
91+
</goals>
92+
<configuration>
93+
<gpgArguments>
94+
<arg>--pinentry-mode</arg>
95+
<arg>loopback</arg>
96+
<arg>--no-tty</arg>
97+
</gpgArguments>
98+
</configuration>
99+
</execution>
100+
</executions>
101+
</plugin>
80102

81103
<!-- Make sure we build on Java 8 with only release dependencies -->
82104

@@ -184,30 +206,6 @@
184206
<pluginManagement>
185207
<plugins>
186208

187-
<!-- Sign JARs -->
188-
189-
<plugin>
190-
<groupId>org.apache.maven.plugins</groupId>
191-
<artifactId>maven-gpg-plugin</artifactId>
192-
<version>3.0.1</version>
193-
<executions>
194-
<execution>
195-
<id>sign-artifacts</id>
196-
<phase>verify</phase>
197-
<goals>
198-
<goal>sign</goal>
199-
</goals>
200-
<configuration>
201-
<gpgArguments>
202-
<arg>--pinentry-mode</arg>
203-
<arg>loopback</arg>
204-
<arg>--no-tty</arg>
205-
</gpgArguments>
206-
</configuration>
207-
</execution>
208-
</executions>
209-
</plugin>
210-
211209
<!-- Deploy to Sonatype OSS Nexus -->
212210

213211
<plugin>
@@ -228,11 +226,6 @@
228226

229227
<plugins>
230228

231-
<plugin>
232-
<groupId>org.apache.maven.plugins</groupId>
233-
<artifactId>maven-gpg-plugin</artifactId>
234-
</plugin>
235-
236229
<plugin>
237230
<groupId>org.sonatype.plugins</groupId>
238231
<artifactId>nexus-staging-maven-plugin</artifactId>

0 commit comments

Comments
 (0)