Skip to content

Commit

Permalink
chore: move gpg in profile used by the Release action
Browse files Browse the repository at this point in the history
  • Loading branch information
slandelle committed Nov 20, 2023
1 parent 821bd46 commit f42b15a
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,25 +100,6 @@
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
</configuration>
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
Expand Down Expand Up @@ -155,4 +136,33 @@
<version>${bc.version}</version>
</dependency>
</dependencies>

<profiles>
<profile>
<id>Release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit f42b15a

Please sign in to comment.