From: Tuukka Lehtonen Date: Sat, 22 Feb 2020 16:30:28 +0000 (+0200) Subject: Support signing of platform external dependencies and SDK X-Git-Tag: v1.43.0~89 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=f4086539192b186ada63d7bc791038dec3aa9312;p=simantics%2Fplatform.git Support signing of platform external dependencies and SDK Swiched to Tycho 1.5.0 and removed broken category.xml files that broke the build with Tycho 1.5.0 compared to 1.0.0. gitlab #468 Change-Id: Idab1eb2d4ce2b2e5b7b4cccc1fd5d18217e5e83a --- diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml index 1bf00d24c..3b43bdfdd 100644 --- a/.mvn/extensions.xml +++ b/.mvn/extensions.xml @@ -3,6 +3,6 @@ org.eclipse.tycho.extras tycho-pomless - 1.0.0 + 1.5.0 - \ No newline at end of file + diff --git a/bundles/org.simantics.gnuplot/pom.xml b/bundles/org.simantics.gnuplot/pom.xml index 75ed6fe45..2d270fb11 100644 --- a/bundles/org.simantics.gnuplot/pom.xml +++ b/bundles/org.simantics.gnuplot/pom.xml @@ -18,7 +18,7 @@ UTF-8 - 1.0.0 + 1.5.0 diff --git a/features/org.simantics.db.client.feature/category.xml b/features/org.simantics.db.client.feature/category.xml deleted file mode 100644 index b8574cb50..000000000 --- a/features/org.simantics.db.client.feature/category.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/features/org.simantics.message.feature/category.xml b/features/org.simantics.message.feature/category.xml deleted file mode 100644 index ddce9f4af..000000000 --- a/features/org.simantics.message.feature/category.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - diff --git a/releng/org.simantics.sdk.build.p2.site/sign.sh b/releng/org.simantics.sdk.build.p2.site/sign.sh new file mode 100755 index 000000000..04dc13228 --- /dev/null +++ b/releng/org.simantics.sdk.build.p2.site/sign.sh @@ -0,0 +1,56 @@ +#!/bin/bash + +dir=`dirname $0` + +if [ $# -lt 3 ]; then + echo "Usage: sign.sh " + echo "" + echo " must contain the following properties:" + echo " jarsigner.alias: keystore entry alias" + echo " jarsigner.storepass: password for the keystore" + echo " jarsigner.keypass: password for the key " + echo "" + echo " can be empty is timestamping is not desired." + exit -1 +fi + +keystore=$1 +signprops=$2 +tsa=$3 + +function signprop { + grep "${1}" ${signprops}|cut -d'=' -f2 +} + +echo "----" +echo "script directory: ${dir}" +echo "keystore: ${keystore}" +echo "signing property file: ${signprops}" +echo "TSA URL: ${tsa}" + +keyalias=$(signprop 'jarsigner.alias') +storepass=$(signprop 'jarsigner.storepass') +keypass=$(signprop 'jarsigner.keypass') + +for jar in `find ${dir}/target/repository/plugins/ -type f -not -ipath '*.source_*.jar'`; do + echo "----" + if [ -z ${tsa} ]; then + echo "Signing $jar" + jarsigner -keystore ${keystore} \ + -storepass ${storepass} \ + -keypass ${keypass} \ + -verbose \ + $jar \ + ${keyalias} + else + echo "Signing and timestamping $jar" + jarsigner -keystore ${keystore} \ + -storepass ${storepass} \ + -keypass ${keypass} \ + -verbose \ + -tsa "${tsa}" \ + $jar \ + ${keyalias} + fi +done + diff --git a/releng/org.simantics.tycho.configuration/pom.xml b/releng/org.simantics.tycho.configuration/pom.xml index 320857f51..659246e6e 100644 --- a/releng/org.simantics.tycho.configuration/pom.xml +++ b/releng/org.simantics.tycho.configuration/pom.xml @@ -8,10 +8,9 @@ pom - 1.0.0 - 1.0.0 + 1.5.0 + 1.5.0 UTF-8 - http://download.eclipse.org/releases/mars @@ -122,4 +121,52 @@ + + + + sign + + + sign + true + + + + + + org.codehaus.mojo + properties-maven-plugin + 1.0.0 + + + initialize + + read-project-properties + + + + + + ${sign.properties} + + + + + org.apache.maven.plugins + maven-jarsigner-plugin + 3.0.0 + + + sign + + sign + verify + + + + + + + +