[java-identity-provider] 02/02: IDP-2147 Investigate WixV4
Rod Widdowson
rdw at steadingsoftware.com
Sat Apr 13 15:26:20 UTC 2024
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=564a5212e03fcd4392621c10746403734a7200e2
commit 564a5212e03fcd4392621c10746403734a7200e2
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Apr 9 13:25:48 2024 +0100
IDP-2147 Investigate WixV4
https://shibboleth.atlassian.net/browse/IDP-2147
Add a profile (sign-and-push-snapshot) to sign and
push the MSI to Nexus
---
idp-msi/pom.xml | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 85 insertions(+), 8 deletions(-)
diff --git a/idp-msi/pom.xml b/idp-msi/pom.xml
index 1c877d6f5..f5e49669c 100644
--- a/idp-msi/pom.xml
+++ b/idp-msi/pom.xml
@@ -7,7 +7,7 @@
<parent>
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-parent</artifactId>
- <!-- DO NO CHANGE VERSION without changing msi.version below -->
+ <!-- DO NO CHANGE VERSION without changing msi.version below -->
<version>5.1.2-SNAPSHOT</version>
</parent>
@@ -20,11 +20,12 @@
<properties>
<!-- where to put the jetty-base we are making -->
<assemblyDirectory>${project.build.directory}/idp-jetty-base</assemblyDirectory>
- <!-- msi Version - CHANGE IN LOCKSTEP WITH THE VERSION ABOVE
- 99 is shorthand for SNAPSHOT
- -->
- <supress.validation>false</supress.validation>
- <msi.version>5.1.1.99</msi.version>
+ <!-- msi Version - CHANGE IN LOCKSTEP WITH THE VERSION ABOVE
+ 99 is shorthand for SNAPSHOT
+ -->
+ <msi.version>5.1.2.99</msi.version>
+ <supress.validation>false</supress.validation>
+ <maven-gpg-plugin.version>3.2.3</maven-gpg-plugin.version>
</properties>
<profiles>
@@ -82,7 +83,7 @@
<arguments>
<argument>clean</argument>
<argument>src/main/wix/idp.vcxproj</argument>
- <argument>/p:SuppressValidation=${supress.validation}</argument>
+ <argument>/p:SuppressValidation=${supress.validation}</argument>
</arguments>
</configuration>
</execution>
@@ -119,7 +120,7 @@
<configuration>
<target>
<copy file="src/main/wix/obj/Debug/idp.msi"
- tofile="${project.build.directory}/shibboleth-identity-provider-${project.version}-x64.msi"/>
+ tofile="${project.build.directory}/shibboleth-identity-provider-${project.version}-x64.msi"/>
</target>
</configuration>
</execution>
@@ -128,5 +129,81 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>sign-and-push-snapshot</id>
+ <build>
+ <plugins>
+ <!-- Create gnupg-homedir and import secret key from env. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>3.1.0</version>
+ <executions>
+ <execution>
+ <id>create-gnupg-homedir-and-import-secret-key-from-env</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <mkdir dir="${project.basedir}/gnupg" />
+ <chmod dir="${project.basedir}/gnupg" perm="700" verbose="true" />
+ <copy todir="${project.basedir}/gnupg" file="${env.GPG_SECRET}" verbose="true" />
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- Sign artifacts with gnupg homedir and passphrase from env. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>sign-and-push-msi</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>sign-and-deploy-file</goal>
+ </goals>
+ <configuration>
+ <url>https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots</url>
+ <repositoryId>snapshot</repositoryId>
+ <file>${project.basedir}/target/shibboleth-identity-provider-${project.version}-x64.msi</file>
+ <groupId>net.shibboleth.idp</groupId>
+ <artifactId>idp-msi</artifactId>
+ <version>${project.version}</version>
+ <generatePom>false</generatePom>
+ <classifier>msi</classifier>
+ <homedir>${project.basedir}/gnupg</homedir>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- Delete gnupg homedir. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>delete-gnupg-homedir</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <excludeDefaultDirectories>true</excludeDefaultDirectories>
+ <filesets>
+ <fileset>
+ <directory>${project.basedir}/gnupg</directory>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list