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

org.simantics.matlablink.parent/pom.xml

index 5c4cda0892e337376f431b3bc4ae09702ee47589..694e8323cf5263a968d3ba1ff3db755b60a48c8c 100644 (file)
                </pluginManagement>\r
        </build>\r
 \r
+       <profiles>\r
+               <profile>\r
+                       <id>sign</id>\r
+                       <activation>\r
+                               <property>\r
+                                       <name>sign</name>\r
+                                       <value>true</value>\r
+                               </property>\r
+                       </activation>\r
+                       <build>\r
+                               <plugins>\r
+                                       <plugin>\r
+                                               <groupId>org.codehaus.mojo</groupId>\r
+                                               <artifactId>properties-maven-plugin</artifactId>\r
+                                               <version>1.0.0</version>\r
+                                               <executions>\r
+                                                       <execution>\r
+                                                               <phase>initialize</phase>\r
+                                                               <goals>\r
+                                                                       <goal>read-project-properties</goal>\r
+                                                               </goals>\r
+                                                       </execution>\r
+                                               </executions>\r
+                                               <configuration>\r
+                                                       <files>\r
+                                                               <file>${sign.properties}</file>\r
+                                                       </files>\r
+                                               </configuration>\r
+                                       </plugin>\r
+                                       <plugin>\r
+                                               <groupId>org.apache.maven.plugins</groupId>\r
+                                               <artifactId>maven-jarsigner-plugin</artifactId>\r
+                                               <version>3.0.0</version>\r
+                                               <executions>\r
+                                                       <execution>\r
+                                                               <id>sign</id>\r
+                                                               <goals>\r
+                                                                       <goal>sign</goal>\r
+                                                                       <goal>verify</goal>\r
+                                                               </goals>\r
+                                                       </execution>\r
+                                               </executions>\r
+                                       </plugin>\r
+                               </plugins>\r
+                       </build>\r
+               </profile>\r
+       </profiles>\r
+\r
        <modules>\r
                <module>../org.simantics.matlablink</module>\r
                <module>../org.simantics.matlablink.win32.x86_64</module>\r