Added release script

This commit is contained in:
Sven Kubiak 2023-07-19 10:41:39 +02:00
parent 7e6cc8e1bb
commit 42dd11678a
No known key found for this signature in database

18
release.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
mvn versions:set
STATUS=$?
if [ $STATUS -ne 0 ]; then
echo "Failed to set new version!"
else
mvn clean deploy -Prelease
STATUS=$?
if [ $STATUS -ne 0 ]; then
echo "Failed to release!"
else
mvn release:update-versions
fi
fi
rm pom.xml.versionsBackup