We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31b6f3a commit 757b591Copy full SHA for 757b591
release.sh
@@ -1,13 +1,12 @@
1
#!/usr/bin/env bash
2
-export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
3
-export PATH=JAVA_HOME/bin:$PATH
4
-
5
-read -p "Really deploy to Maven Central repository (Y/N)? "
6
-if ( [ "$REPLY" == "Y" ] ) then
+JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
+PATH="$JAVA_HOME/bin:$PATH"
+export JAVA_HOME PATH
7
+read -r -p "Really deploy to Maven Central repository (Y/N)? "
+if [ "$REPLY" == "Y" ]; then
8
mvn clean
9
mvn release:clean release:prepare release:perform -Prelease -X -e | tee release.log
10
11
else
12
echo -e "Exit without deploy"
13
-fi
+fi
0 commit comments