]> gerrit.simantics Code Review - simantics/python.git/blobdiff - org.simantics.pythonlink.parent/pom.xml
Add support for signing published bundles
[simantics/python.git] / org.simantics.pythonlink.parent / pom.xml
index b0abce2495ef2bbda181c68ca6a8f0688e095efb..b1f04ca7e68323b5756e1020c0424ed6801ec541 100644 (file)
@@ -18,7 +18,7 @@
                 <branch-spec>master</branch-spec>
                 <simantics-download-site>http://www.simantics.org/download</simantics-download-site>
                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-                <tycho-version>0.26.0</tycho-version>
+                <tycho-version>1.4.0</tycho-version>
         </properties>
 
         <repositories>
                </pluginManagement>
        </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.pythonlink</module>
                <module>../org.simantics.pythonlink.win32.x86_64</module>