Skip to content

Commit

Permalink
Use real gpg secrets for testjar in release profile
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbye committed Mar 16, 2024
1 parent 4fcb1a6 commit befe8f6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions testjar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<goal>sign</goal>
</goals>
<configuration>
<!-- use non secrets for testing -->
<keyname>70840C24899FD4CB</keyname>
<homedir>${basedir}</homedir>
<passphrase>secret</passphrase>
Expand All @@ -73,6 +74,31 @@
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>none</phase>
<goals>
<goal>sign</goal>
</goals>
<!-- Easier to use real secrets in release profile -->
</execution>
</executions>
</plugin>

</plugins>
</build>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>com.google.code.findbugs</groupId>
Expand Down

0 comments on commit befe8f6

Please sign in to comment.