Skip to content

Commit 63cdca6

Browse files
committed
Get correct version from Maven
1 parent d719254 commit 63cdca6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis/create_release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
set -ev
33

44
VERSION=`date +%Y%m%d%H%M`
5+
MVN_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
56

67
#overcome maven assemble issue: https://github.com/mojohaus/appassembler/issues/61
78
sed -i '/CYGWIN\*) cygwin=true/c\ CYGWIN*|MINGW*) cygwin=true ;;' target/appassembler/bin/utplsql
@@ -27,7 +28,7 @@ cat > bintray.json <<EOF
2728
"vcs_url": "https://github.com/utPLSQL/utPLSQL-cli.git",
2829
"licenses": [ "MIT" ]
2930
},
30-
"version": { "name": "${VERSION}" },
31+
"version": { "name": "${MVN_VERSION}" },
3132
"files": [ { "includePattern": "dist/(.*)", "uploadPattern": "\$1" } ],
3233
"publish": true
3334
}

0 commit comments

Comments
 (0)