Commit 2c6b8878 authored by gmessner's avatar gmessner
Browse files

Moved the maven-pgp-plugin into a profile.

parent d494e7f1
......@@ -41,8 +41,7 @@
<url>git@github.com:gmessner/gitlab-api.git</url>
<connection>scm:git:git@github.com:gmessner/gitlab-api.git</connection>
<developerConnection>scm:git:git@github.com:gmessner/gitlab-api.git</developerConnection>
<tag>HEAD</tag>
</scm>
</scm>
<build>
<defaultGoal>package</defaultGoal>
......@@ -62,6 +61,7 @@
</checkModificationExcludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-scm-plugin</artifactId>
<version>1.9</version>
......@@ -69,20 +69,7 @@
<tag>${project.artifactId}-${project.version}</tag>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
......@@ -92,9 +79,38 @@
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment