Skip to content

Commit a212d1a

Browse files
committed
Sign only when releasing
1 parent a522549 commit a212d1a

File tree

1 file changed

+57
-40
lines changed

1 file changed

+57
-40
lines changed

fastfilter/pom.xml

Lines changed: 57 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>fastfilter</artifactId>
13+
<packaging>jar</packaging>
1314

1415
<name>FastFilter</name>
1516
<description>Fast Approximate Membership Filters in Java</description>
@@ -89,47 +90,63 @@
8990
</targetTests>
9091
</configuration>
9192
</plugin>
92-
<plugin>
93-
<groupId>org.apache.maven.plugins</groupId>
94-
<artifactId>maven-source-plugin</artifactId>
95-
<version>2.2.1</version>
96-
<executions>
97-
<execution>
98-
<id>attach-sources</id>
99-
<goals>
100-
<goal>jar-no-fork</goal>
101-
</goals>
102-
</execution>
103-
</executions>
104-
</plugin>
105-
<plugin>
106-
<groupId>org.apache.maven.plugins</groupId>
107-
<artifactId>maven-javadoc-plugin</artifactId>
108-
<version>2.9.1</version>
109-
<executions>
110-
<execution>
111-
<id>attach-javadocs</id>
112-
<goals>
113-
<goal>jar</goal>
114-
</goals>
115-
</execution>
116-
</executions>
117-
</plugin>
118-
<plugin>
119-
<groupId>org.apache.maven.plugins</groupId>
120-
<artifactId>maven-gpg-plugin</artifactId>
121-
<version>1.5</version>
122-
<executions>
123-
<execution>
124-
<id>sign-artifacts</id>
125-
<phase>verify</phase>
126-
<goals>
127-
<goal>sign</goal>
128-
</goals>
129-
</execution>
130-
</executions>
131-
</plugin>
13293
</plugins>
13394
</build>
95+
96+
<profiles>
97+
<profile>
98+
<id>release-sign-artifacts</id>
99+
<activation>
100+
<property>
101+
<name>performRelease</name>
102+
<value>true</value>
103+
</property>
104+
</activation>
105+
<build>
106+
<plugins>
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-source-plugin</artifactId>
110+
<version>2.2.1</version>
111+
<executions>
112+
<execution>
113+
<id>attach-sources</id>
114+
<goals>
115+
<goal>jar-no-fork</goal>
116+
</goals>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
<plugin>
121+
<groupId>org.apache.maven.plugins</groupId>
122+
<artifactId>maven-javadoc-plugin</artifactId>
123+
<version>2.9.1</version>
124+
<executions>
125+
<execution>
126+
<id>attach-javadocs</id>
127+
<goals>
128+
<goal>jar</goal>
129+
</goals>
130+
</execution>
131+
</executions>
132+
</plugin>
133+
<plugin>
134+
<groupId>org.apache.maven.plugins</groupId>
135+
<artifactId>maven-gpg-plugin</artifactId>
136+
<version>1.5</version>
137+
<executions>
138+
<execution>
139+
<id>sign-artifacts</id>
140+
<phase>verify</phase>
141+
<goals>
142+
<goal>sign</goal>
143+
</goals>
144+
</execution>
145+
</executions>
146+
</plugin>
147+
</plugins>
148+
</build>
149+
</profile>
150+
</profiles>
134151

135152
</project>

0 commit comments

Comments
 (0)