Skip to content

Commit eb89670

Browse files
Add GPG signing to dependencies module.
1 parent 2b58c45 commit eb89670

File tree

1 file changed

+29
-0
lines changed
  • spring-cloud-aws-dependencies

1 file changed

+29
-0
lines changed

spring-cloud-aws-dependencies/pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<aws-java-sdk.version>1.11.951</aws-java-sdk.version>
3636
<elasticache.version>1.1.1</elasticache.version>
3737
<jmemcached.version>1.0.0</jmemcached.version>
38+
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
3839
</properties>
3940
<dependencyManagement>
4041
<dependencies>
@@ -206,6 +207,34 @@
206207
</pluginRepository>
207208
</pluginRepositories>
208209
</profile>
210+
<profile>
211+
<id>release</id>
212+
<build>
213+
<plugins>
214+
<plugin>
215+
<groupId>org.apache.maven.plugins</groupId>
216+
<artifactId>maven-gpg-plugin</artifactId>
217+
<version>${maven-gpg-plugin.version}</version>
218+
<configuration>
219+
<!-- Prevent gpg from using pinentry programs -->
220+
<gpgArguments>
221+
<arg>--pinentry-mode</arg>
222+
<arg>loopback</arg>
223+
</gpgArguments>
224+
</configuration>
225+
<executions>
226+
<execution>
227+
<id>sign-artifacts</id>
228+
<phase>verify</phase>
229+
<goals>
230+
<goal>sign</goal>
231+
</goals>
232+
</execution>
233+
</executions>
234+
</plugin>
235+
</plugins>
236+
</build>
237+
</profile>
209238
</profiles>
210239

211240
<distributionManagement>

0 commit comments

Comments
 (0)