forked from phax/maven-jaxb2-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqrelease.sh
executable file
·51 lines (40 loc) · 1.34 KB
/
qrelease.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
echo "Performing a full clean build."
mvn clean install -Pall,sonatype-oss-release -DperformRelease
echo "Full clean build completed."
echo "Setting new version to: $1."
mvn versions:set -Pall -DnewVersion=$1
echo "Version was set to $1."
mvn versions:commit -Pall
echo "Version $1 committed."
echo "Performing a full clean build."
mvn clean install -Pall,sonatype-oss-release -DperformRelease
echo "Full clean build completed."
echo "Checking in version $1."
git commit -a -m "Version $1"
echo "Version $1 was checked in."
echo "Tagging version $1."
git tag -a $1 -m "Version $1"
echo "Version $1 was tagged."
echo "Pushing version $1."
git push origin main
git push --tags origin main
echo "Version $1 was pushed."
echo "Performing full clean deploy."
mvn -DperformRelease -Pall,sonatype-oss-release clean deploy
echo "Full clean deploy done."
echo "Setting new version to $2."
mvn versions:set -Pall -DnewVersion=$2
echo "Version was set to $2."
mvn versions:commit -Pall
echo "Version $2 was committed."
echo "Performing a full clean build."
mvn clean install -DperformRelease -Pall,sonatype-oss-release
echo "Full clean build completed."
echo "Checking in version $2."
git commit -a -m "Version $2"
echo "Version $2 was checked in."
echo "Pushing version $2."
git push origin main
git push --tags origin main
echo "Version $2 was pushed."