Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit ddb2349

Browse files
author
Caesar Ralf
committed
Fix gpg plugin setup
1 parent 6150faf commit ddb2349

File tree

1 file changed

+58
-49
lines changed

1 file changed

+58
-49
lines changed

pom.xml

Lines changed: 58 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24
<modelVersion>4.0.0</modelVersion>
35

46
<artifactId>logging</artifactId>
@@ -44,34 +46,6 @@
4446
</developer>
4547
</developers>
4648

47-
<profiles>
48-
<profile>
49-
<id>ci</id>
50-
<activation>
51-
<property>
52-
<name>env.CI</name>
53-
<value>true</value>
54-
</property>
55-
</activation>
56-
<build>
57-
<plugins>
58-
<plugin>
59-
<groupId>com.coveo</groupId>
60-
<artifactId>fmt-maven-plugin</artifactId>
61-
<version>2.10</version>
62-
<executions>
63-
<execution>
64-
<goals>
65-
<goal>check</goal>
66-
</goals>
67-
</execution>
68-
</executions>
69-
</plugin>
70-
</plugins>
71-
</build>
72-
</profile>
73-
</profiles>
74-
7549
<dependencies>
7650
<!--compile scope-->
7751
<dependency>
@@ -190,26 +164,61 @@
190164
</execution>
191165
</executions>
192166
</plugin>
193-
<plugin>
194-
<groupId>org.apache.maven.plugins</groupId>
195-
<artifactId>maven-gpg-plugin</artifactId>
196-
<version>3.0.1</version>
197-
<executions>
198-
<execution>
199-
<id>sign-artifacts</id>
200-
<goals>
201-
<goal>sign</goal>
202-
</goals>
203-
<phase>verify</phase>
204-
<configuration>
205-
<gpgArguments>
206-
<arg>--pinentry-mode</arg>
207-
<arg>loopback</arg>
208-
</gpgArguments>
209-
</configuration>
210-
</execution>
211-
</executions>
212-
</plugin>
213167
</plugins>
214168
</build>
169+
170+
<profiles>
171+
<profile>
172+
<id>ci</id>
173+
<activation>
174+
<property>
175+
<name>env.CI</name>
176+
<value>true</value>
177+
</property>
178+
</activation>
179+
<build>
180+
<plugins>
181+
<plugin>
182+
<groupId>com.coveo</groupId>
183+
<artifactId>fmt-maven-plugin</artifactId>
184+
<version>2.10</version>
185+
<executions>
186+
<execution>
187+
<goals>
188+
<goal>check</goal>
189+
</goals>
190+
</execution>
191+
</executions>
192+
</plugin>
193+
</plugins>
194+
</build>
195+
</profile>
196+
<profile>
197+
<id>release</id>
198+
<build>
199+
<plugins>
200+
<plugin>
201+
<groupId>org.apache.maven.plugins</groupId>
202+
<artifactId>maven-gpg-plugin</artifactId>
203+
<version>3.1.0</version>
204+
<executions>
205+
<execution>
206+
<id>sign-artifacts</id>
207+
<goals>
208+
<goal>sign</goal>
209+
</goals>
210+
<phase>verify</phase>
211+
<configuration>
212+
<gpgArguments>
213+
<arg>--pinentry-mode</arg>
214+
<arg>loopback</arg>
215+
</gpgArguments>
216+
</configuration>
217+
</execution>
218+
</executions>
219+
</plugin>
220+
</plugins>
221+
</build>
222+
</profile>
223+
</profiles>
215224
</project>

0 commit comments

Comments
 (0)