Skip to content

Commit 011465f

Browse files
Pass the pom version via the cli args (#196)
Signed-off-by: Jinbo Wang <[email protected]>
1 parent d0b2c84 commit 011465f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

com.microsoft.java.debug.repository/pushToBintray.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
#!/bin/bash
2-
#Usage: ./pushToBintray.sh username apikey repo package
2+
#Usage: ./pushToBintray.sh username apikey repo package version
33
BINTRAY_USER=$1
44
BINTRAY_API_KEY=$2
55
BINTRAY_REPO=$3
66
PCK_NAME=$4
7+
PCK_VERSION=$5
78

89
SCRIPT=$(readlink -f "$0")
910
SCRIPTPATH=$(dirname "$SCRIPT")
1011

11-
cd $SCRIPTPATH/..
12-
echo "Resolving the package version..."
13-
PCK_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
14-
echo "The package version: $PCK_VERSION"
15-
1612
function main() {
1713
cd $SCRIPTPATH/target/repository
1814

0 commit comments

Comments
 (0)