Skip to content

Commit 5617387

Browse files
committed
add relase.sh
Signed-off-by: Ceki Gulcu <[email protected]>
1 parent 02860b6 commit 5617387

File tree

1 file changed

+10
-42
lines changed

1 file changed

+10
-42
lines changed

release.sh

+10-42
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,17 @@
1-
#mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${VERSION_NUMBER}
1+
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${VERSION_NUMBER}
22

3-
MVN='/java/maven-3.5.2//bin/mvn'
3+
edit slf4j-log4j12 version
44

5-
PASS=$1
6-
echo $PASS
5+
mvn clean
6+
mvn install
77

8-
function checkExit(){
9-
if test "$?" != "0"; then
10-
echo Command $1 exited with abnormal status
11-
exit 1;
12-
else echo $?
13-
fi
14-
}
8+
mvn deploy -P javadocjar,sign-artifacts -Dgpg.passphrase=passwd
159

16-
function echoThenRun () { # echo and then run the command
17-
echo $1
18-
$1
19-
ret=$?
20-
echo $ret
21-
return $ret
22-
}
10+
#uncomment diffie-hellman support in /etc/ssh/sshd_config
2311

24-
$MVN clean
25-
checkExit "mvn clean"
12+
mvn site:deploy -N # with Java 8!!!
2613

14+
git tag -m "tagging" -a v_${VERSION_NUMBER}
15+
git push --tags
2716

28-
$MVN install
29-
checkExit "mvn install"
30-
31-
32-
$MVN site:site
33-
checkExit "mvn site:ste"
34-
35-
36-
$MVN assembly:single
37-
checkExit "mvn assembly:single"
38-
39-
40-
$MVN deploy -P javadocjar,sign-artifacts -Dgpg.passphrase=$PASS
41-
checkExit "mvn deploy -P javadocjar,sign-artifacts -Dgpg.passphrase=xxx"
42-
43-
#$MVN site:deploy -N # with Java 8!!!
44-
#checkExit "mvn site:deploy -N"
45-
46-
#git tag -m "tagging" -a v_${VERSION_NUMBER}
47-
#git push --tags
48-
49-
#release version and add next version on jira
17+
release version and add next version on jira

0 commit comments

Comments
 (0)