[MINOR] Change deploy_staging_jars script to take in scala version (#1269)
This commit is contained in:
committed by
leesf
parent
a54535ed5a
commit
a46fea9ff4
@@ -34,11 +34,25 @@ if [[ `basename $CURR_DIR` != "scripts" ]] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $# -lt 1 ]]; then
|
||||||
|
echo "This script will deploy artifacts to staging repositories"
|
||||||
|
echo "There is one param required:"
|
||||||
|
echo "--scala_version=\${SCALA_VERSION}"
|
||||||
|
exit
|
||||||
|
else
|
||||||
|
for param in "$@"
|
||||||
|
do
|
||||||
|
if [[ $param =~ --scala_version\=(2\.1[1-2]) ]]; then
|
||||||
|
SCALA_VERSION=${BASH_REMATCH[1]}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "Deploying to repository.apache.org"
|
echo "Deploying to repository.apache.org with scala version ${SCALA_VERSION}"
|
||||||
|
|
||||||
COMMON_OPTIONS="-Prelease -DskipTests -DretryFailedDeploymentCount=10 -DdeployArtifacts=true"
|
COMMON_OPTIONS="-Pscala-${SCALA_VERSION} -Prelease -DskipTests -DretryFailedDeploymentCount=10 -DdeployArtifacts=true"
|
||||||
$MVN clean deploy $COMMON_OPTIONS
|
#$MVN clean deploy $COMMON_OPTIONS
|
||||||
|
|||||||
Reference in New Issue
Block a user