Skip to content

Commit 273a0c4

Browse files
committed
move GPG into profile section
1 parent 147c347 commit 273a0c4

File tree

1 file changed

+30
-15
lines changed

1 file changed

+30
-15
lines changed

pom.xml

+30-15
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,6 @@
7777
</execution>
7878
</executions>
7979
</plugin>
80-
81-
<plugin>
82-
<groupId>org.apache.maven.plugins</groupId>
83-
<artifactId>maven-gpg-plugin</artifactId>
84-
<version>1.4</version>
85-
<executions>
86-
<execution>
87-
<id>sign-artifacts</id>
88-
<phase>verify</phase>
89-
<goals>
90-
<goal>sign</goal>
91-
</goals>
92-
</execution>
93-
</executions>
94-
</plugin>
9580
</plugins>
9681

9782
<pluginManagement>
@@ -125,6 +110,36 @@
125110
</pluginManagement>
126111
</build>
127112

113+
<profiles>
114+
<profile>
115+
<id>release-sign-artifacts</id>
116+
<activation>
117+
<property>
118+
<name>performRelease</name>
119+
<value>true</value>
120+
</property>
121+
</activation>
122+
<build>
123+
<plugins>
124+
<plugin>
125+
<groupId>org.apache.maven.plugins</groupId>
126+
<artifactId>maven-gpg-plugin</artifactId>
127+
<version>1.4</version>
128+
<executions>
129+
<execution>
130+
<id>sign-artifacts</id>
131+
<phase>verify</phase>
132+
<goals>
133+
<goal>sign</goal>
134+
</goals>
135+
</execution>
136+
</executions>
137+
</plugin>
138+
</plugins>
139+
</build>
140+
</profile>
141+
</profiles>
142+
128143
<dependencies>
129144
<dependency>
130145
<groupId>org.apache.commons</groupId>

0 commit comments

Comments
 (0)