aboutsummaryrefslogtreecommitdiff
path: root/make-distribution.sh
diff options
context:
space:
mode:
authorMarcelo Vanzin <vanzin@cloudera.com>2015-03-12 19:16:58 +0000
committerSean Owen <sowen@cloudera.com>2015-03-12 19:16:58 +0000
commit8f1bc7989b13c42aec7679b7c417175527b76419 (patch)
tree8ca1951b84c4e886f1ec048775d444a19151e2d0 /make-distribution.sh
parent304366c465c3266653b5ec7758277cf8d7027888 (diff)
downloadspark-8f1bc7989b13c42aec7679b7c417175527b76419.tar.gz
spark-8f1bc7989b13c42aec7679b7c417175527b76419.tar.bz2
spark-8f1bc7989b13c42aec7679b7c417175527b76419.zip
[build] [hotfix] Fix make-distribution.sh for Scala 2.11.
Author: Marcelo Vanzin <vanzin@cloudera.com> Closes #5002 from vanzin/mkdist-hotfix and squashes the following commits: ced65f7 [Marcelo Vanzin] [build] [hotfix] Fix make-distribution.sh for Scala 2.11.
Diffstat (limited to 'make-distribution.sh')
-rwxr-xr-xmake-distribution.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/make-distribution.sh b/make-distribution.sh
index 82d33408cd..9ed1abfe8c 100755
--- a/make-distribution.sh
+++ b/make-distribution.sh
@@ -127,7 +127,9 @@ if [ ! $(command -v "$MVN") ] ; then
fi
VERSION=$("$MVN" help:evaluate -Dexpression=project.version 2>/dev/null | grep -v "INFO" | tail -n 1)
-SCALA_VERSION=$("$MVN" help:evaluate -Dexpression=scala.binary.version 2>/dev/null | grep -v "INFO" | tail -n 1)
+SCALA_VERSION=$("$MVN" help:evaluate -Dexpression=scala.binary.version $@ 2>/dev/null\
+ | grep -v "INFO"\
+ | tail -n 1)
SPARK_HADOOP_VERSION=$("$MVN" help:evaluate -Dexpression=hadoop.version $@ 2>/dev/null\
| grep -v "INFO"\
| tail -n 1)