Skip to content

Commit 7151073

Browse files
authored
Merge pull request #139 from olimpias/move-gpg-plugin-to-profile
Move gpg plugin to profiles
2 parents 8549411 + f4a7760 commit 7151073

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

api/pom.xml

+27-14
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,33 @@
7777
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7878
</properties>
7979
</profile>
80+
<profile>
81+
<id>release-sign-artifacts</id>
82+
<activation>
83+
<property>
84+
<name>performRelease</name>
85+
<value>true</value>
86+
</property>
87+
</activation>
88+
<build>
89+
<plugins>
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-gpg-plugin</artifactId>
93+
<version>1.6</version>
94+
<executions>
95+
<execution>
96+
<id>sign-artifacts</id>
97+
<phase>verify</phase>
98+
<goals>
99+
<goal>sign</goal>
100+
</goals>
101+
</execution>
102+
</executions>
103+
</plugin>
104+
</plugins>
105+
</build>
106+
</profile>
80107
</profiles>
81108

82109
<dependencies>
@@ -156,20 +183,6 @@
156183
</dependency>
157184
</dependencies>
158185
</plugin>
159-
<plugin>
160-
<groupId>org.apache.maven.plugins</groupId>
161-
<artifactId>maven-gpg-plugin</artifactId>
162-
<version>1.6</version>
163-
<executions>
164-
<execution>
165-
<id>sign-artifacts</id>
166-
<phase>verify</phase>
167-
<goals>
168-
<goal>sign</goal>
169-
</goals>
170-
</execution>
171-
</executions>
172-
</plugin>
173186
<plugin>
174187
<groupId>org.apache.maven.plugins</groupId>
175188
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)