Skip to content

Commit 7e296c2

Browse files
committed
[#67] Configure GPG plugin for publishing.
1 parent e9ff557 commit 7e296c2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,31 @@
136136
</execution>
137137
</executions>
138138
</plugin>
139+
<plugin>
140+
<groupId>org.apache.maven.plugins</groupId>
141+
<artifactId>maven-gpg-plugin</artifactId>
142+
<version>3.2.7</version>
143+
<executions>
144+
<execution>
145+
<id>sign-artifacts</id>
146+
<phase>verify</phase>
147+
<goals>
148+
<goal>sign</goal>
149+
</goals>
150+
<configuration>
151+
<!--
152+
The following properties must be defined by your settings.xml file.
153+
See the following URLs for additional information.
154+
155+
https://central.sonatype.org/publish/publish-maven/#gpg-signed-components
156+
https://maven.apache.org/plugins/maven-gpg-plugin/usage.html
157+
-->
158+
<keyname>${gpg.keyname}</keyname>
159+
<passphraseServerId>${gpg.keyname}</passphraseServerId>
160+
</configuration>
161+
</execution>
162+
</executions>
163+
</plugin>
139164
</plugins>
140165
</build>
141166
</project>

0 commit comments

Comments
 (0)