Skip to content

Commit c1d6439

Browse files
committed
publish 2.11 artifact to maven
1 parent a7918f0 commit c1d6439

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

dev/publish_release.sh

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ NC='\033[0m' # No Color
4444
RELEASE_VERSION="$1"
4545
GIT_TAG="$2"
4646

47-
PUBLISH_PROFILES="-Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pr"
47+
PUBLISH_PROFILES="-Pspark-2.0 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pr"
4848
PROJECT_OPTIONS="-pl !zeppelin-distribution"
49+
PROJECT_OPTIONS_SCALA211="-pl zeppelin-interpreter,cassandra,flink,ignite,spark,spark-dependencies,r,zeppelin-display"
4950
NEXUS_STAGING="https://repository.apache.org/service/local/staging"
5051
NEXUS_PROFILE="153446d1ac37c4"
5152

@@ -92,13 +93,27 @@ function publish_to_maven() {
9293

9394
tmp_repo="$(mktemp -d /tmp/zeppelin-repo-XXXXX)"
9495

96+
# build with scala-2.10
9597
echo "mvn clean install -Ppublish-distr \
9698
-Dmaven.repo.local=${tmp_repo} \
9799
${PUBLISH_PROFILES} ${PROJECT_OPTIONS}"
98100
mvn clean install -Ppublish-distr -Dmaven.repo.local="${tmp_repo}" \
99101
${PUBLISH_PROFILES} ${PROJECT_OPTIONS}
100102
if [[ $? -ne 0 ]]; then
101-
echo "Build failed."
103+
echo "Build with scala 2.10 failed."
104+
exit 1
105+
fi
106+
107+
# build with scala-2.11
108+
"${BASEDIR}/change_scala_version.sh" 2.11
109+
110+
echo "mvn clean install -Ppublish-distr \
111+
-Dmaven.repo.local=${tmp_repo} -Dscala-2.11 \
112+
${PUBLISH_PROFILES} ${PROJECT_OPTIONS}"
113+
mvn clean install -Ppublish-distr -Dmaven.repo.local="${tmp_repo}" -Dscala-2.11\
114+
${PUBLISH_PROFILES} ${PROJECT_OPTIONS_SCALA211}
115+
if [[ $? -ne 0 ]]; then
116+
echo "Build with scala 2.11 failed."
102117
exit 1
103118
fi
104119

0 commit comments

Comments
 (0)