eagler-teavm-fork/set-version.sh

16 lines
567 B
Bash
Raw Normal View History

#!/bin/sh
mvn versions:set -DnewVersion=$1 -DgenerateBackupPoms=false
pushd tools/eclipse
2015-12-24 11:10:02 -08:00
mvn org.eclipse.tycho:tycho-versions-plugin:0.21.0:set-version -DnewVersion=$1
pushd core-plugin
mvn -f dep-pom.xml versions:set -DnewVersion=$1 -DgenerateBackupPoms=false
2015-12-24 11:10:02 -08:00
sed -r -i -e "s/lib\/(teavm(-[a-z]+)+)-.+\.jar/\1-$1.jar/" build.properties
sed -r -i -e "s/lib\/(teavm(-[a-z]+)+)-.+\.jar/\1-$1.jar/" META-INF/MANIFEST.MF
popd
pushd m2e-plugin
sed -r -i -e "s/<versionRange>.+<\/versionRange>/<versionRange>$1<\/versionRange>/" lifecycle-mapping-metadata.xml
popd
popd