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

pom.xml

diff --git a/pom.xml b/pom.xml
index be0c16ebc8f0a5523a2be16cfcf5045829d7404f..a9faec556de42d719ff35328473687333f06887b 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.excel.poi</module>
                <!--<module>org.simantics.express</module>-->