Skip to content

Commit a7dfe07

Browse files
committed
pom profiles updated
1 parent 1103f42 commit a7dfe07

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

pom.xml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
<maven.compiler.target>8</maven.compiler.target>
5757
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5858
<gpg.executable>gpg</gpg.executable>
59-
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
6059
</properties>
6160

6261
<dependencies>
@@ -152,5 +151,39 @@
152151
</plugins>
153152
</build>
154153

154+
<profiles>
155+
<profile>
156+
<id>release</id>
157+
<activation>
158+
<activeByDefault>false</activeByDefault>
159+
</activation>
160+
<build>
161+
<plugins>
162+
<plugin>
163+
<groupId>org.apache.maven.plugins</groupId>
164+
<artifactId>maven-gpg-plugin</artifactId>
165+
<version>3.0.1</version>
166+
<executions>
167+
<execution>
168+
<id>sign-artifacts</id>
169+
<phase>verify</phase>
170+
<goals>
171+
<goal>sign</goal>
172+
</goals>
173+
</execution>
174+
</executions>
175+
<configuration>
176+
<gpgArguments>
177+
<arg>--pinentry-mode</arg>
178+
<arg>loopback</arg>
179+
</gpgArguments>
180+
</configuration>
181+
</plugin>
182+
</plugins>
183+
</build>
184+
</profile>
185+
</profiles>
186+
187+
155188

156189
</project>

0 commit comments

Comments
 (0)