]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Add support for signing published bundles
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Feb 2020 21:47:55 +0000 (23:47 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Feb 2020 21:47:55 +0000 (23:47 +0200)
gitlab simantics/platform#468

pom.xml

diff --git a/pom.xml b/pom.xml
index 8bec8afda089560df799ba0c8d7c6aec8bb32109..c6ac8ea279872fd0fe71ff7ee2ec0843b6774591 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                </plugins>
        </build>
 
+       <profiles>
+               <profile>
+                       <id>sign</id>
+                       <activation>
+                               <property>
+                                       <name>sign</name>
+                                       <value>true</value>
+                               </property>
+                       </activation>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               <groupId>org.codehaus.mojo</groupId>
+                                               <artifactId>properties-maven-plugin</artifactId>
+                                               <version>1.0.0</version>
+                                               <executions>
+                                                       <execution>
+                                                               <phase>initialize</phase>
+                                                               <goals>
+                                                                       <goal>read-project-properties</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                               <configuration>
+                                                       <files>
+                                                               <file>${sign.properties}</file>
+                                                       </files>
+                                               </configuration>
+                                       </plugin>
+                                       <plugin>
+                                               <groupId>org.apache.maven.plugins</groupId>
+                                               <artifactId>maven-jarsigner-plugin</artifactId>
+                                               <version>3.0.0</version>
+                                               <executions>
+                                                       <execution>
+                                                               <id>sign</id>
+                                                               <goals>
+                                                                       <goal>sign</goal>
+                                                                       <goal>verify</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+       </profiles>
+
        <modules>
                <module>org.simantics.district.geotools</module>
                <module>org.simantics.district.imports</module>