Skip to content

Commit

Permalink
ci: GPG signing plugin (#35)
Browse files Browse the repository at this point in the history
This commit introduces the maven-gpg-plugin to sign artifacts during the
deploy phase, enhancing security and integrity. Additionally, the
publishing server ID has been updated from 'central' to 'github' to
adjust the deployment target.

DSP-154
  • Loading branch information
pflynn-virtru authored Oct 22, 2024
1 parent fb3011a commit 5943501
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,26 @@
</execution>
</executions>
</plugin>
<!-- Plugin for Signing -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>deploy</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
Expand Down Expand Up @@ -286,7 +306,7 @@
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
<!-- defined in settings.xml -->
<publishingServerId>central</publishingServerId>
<publishingServerId>github</publishingServerId>
</configuration>
</plugin>
<!-- Exclude from lifecycle, phase none -->
Expand Down

0 comments on commit 5943501

Please sign in to comment.