Skip to content

Commit

Permalink
Move GPG signing into release profile.
Browse files Browse the repository at this point in the history
Closes #2214
  • Loading branch information
mp911de committed Feb 6, 2024
1 parent fdef31d commit ca07f1d
Showing 1 changed file with 22 additions and 29 deletions.
51 changes: 22 additions & 29 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,28 @@
<id>release</id>
<build>
<plugins>
<!-- Sign JARs -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
<arg>--no-tty</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>

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

Expand Down Expand Up @@ -184,30 +206,6 @@
<pluginManagement>
<plugins>

<!-- Sign JARs -->

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
<arg>--no-tty</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>

<!-- Deploy to Sonatype OSS Nexus -->

<plugin>
Expand All @@ -228,11 +226,6 @@

<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
Expand Down

0 comments on commit ca07f1d

Please sign in to comment.