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

Moved the maven-pgp-plugin into a profile.

parent d494e7f1
...@@ -41,8 +41,7 @@ ...@@ -41,8 +41,7 @@
<url>git@github.com:gmessner/gitlab-api.git</url> <url>git@github.com:gmessner/gitlab-api.git</url>
<connection>scm:git:git@github.com:gmessner/gitlab-api.git</connection> <connection>scm:git:git@github.com:gmessner/gitlab-api.git</connection>
<developerConnection>scm:git:git@github.com:gmessner/gitlab-api.git</developerConnection> <developerConnection>scm:git:git@github.com:gmessner/gitlab-api.git</developerConnection>
<tag>HEAD</tag> </scm>
</scm>
<build> <build>
<defaultGoal>package</defaultGoal> <defaultGoal>package</defaultGoal>
...@@ -62,6 +61,7 @@ ...@@ -62,6 +61,7 @@
</checkModificationExcludes> </checkModificationExcludes>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-scm-plugin</artifactId> <artifactId>maven-scm-plugin</artifactId>
<version>1.9</version> <version>1.9</version>
...@@ -69,20 +69,7 @@ ...@@ -69,20 +69,7 @@
<tag>${project.artifactId}-${project.version}</tag> <tag>${project.artifactId}-${project.version}</tag>
</configuration> </configuration>
</plugin> </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> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
...@@ -92,9 +79,38 @@ ...@@ -92,9 +79,38 @@
<target>1.6</target> <target>1.6</target>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </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> <dependencies>
<dependency> <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