Skip to content
Snippets Groups Projects
Commit 3f162608 authored by Tibo's avatar Tibo
Browse files

Sign artifacts

parent 64eb2c82
No related branches found
No related tags found
No related merge requests found
...@@ -151,6 +151,22 @@ ...@@ -151,6 +151,22 @@
</configuration> </configuration>
</plugin> </plugin>
<!-- to sign the jars with a GPG key -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- To check that there are no unused dependencies --> <!-- To check that there are no unused dependencies -->
<plugin> <plugin>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
...@@ -226,36 +242,4 @@ ...@@ -226,36 +242,4 @@
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
</properties> </properties>
<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>release</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<!-- to sign the jars with a GPG key -->
<!-- to run, use mvn clean install -Drelease=true" -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment