]> gerrit.simantics Code Review - simantics/python.git/commitdiff
Add support for signing published bundles master release/1.43.0 release/1.43.0.1 release/1.43.1 release/1.44.0 release/1.45.0
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Feb 2020 21:37:44 +0000 (23:37 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Feb 2020 21:37:44 +0000 (23:37 +0200)
gitlab simantics/platform#468

org.simantics.pythonlink.parent/pom.xml

index 57dd86f639b0595e7f942b507c0f01b650e65917..b1f04ca7e68323b5756e1020c0424ed6801ec541 100644 (file)
                </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>