Skip to content

Commit 268654b

Browse files
committed
HADOOP-19083. Add --aws-sdk option to create-release command
Change-Id: I29309cc76ccf4c214f112d2245aab7713a430063
1 parent 092c780 commit 268654b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

dev-support/bin/create-release

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ function usage
283283
{
284284
echo "--artifactsdir=[path] Path to use to store release bits"
285285
echo "--asfrelease Make an ASF release"
286+
echo "--aws-sdk Include the AWS SDK bundle.jar in the release"
286287
echo "--deploy Deploy Maven artifacts using ~/.m2/settings.xml"
287288
echo "--docker Use Hadoop's Dockerfile for guaranteed environment"
288289
echo "--dockercache Use a Docker-private maven cache"
@@ -311,6 +312,9 @@ function option_parse
311312
--artifactsdir=*)
312313
ARTIFACTS_DIR=${i#*=}
313314
;;
315+
--aws-sdk)
316+
AWSSDK=true
317+
;;
314318
--deploy)
315319
DEPLOY=true
316320
;;
@@ -580,11 +584,18 @@ function makearelease
580584
target="deploy"
581585
fi
582586

587+
# create profiles for the main build
588+
PROFILES=dist,src,yarn-ui
589+
if [[ "${AWSSDK}" = true ]]; then
590+
# Add (large) AWS SDK to the build
591+
PROFILES="${PROFILES},awssdk"
592+
fi
593+
583594
# Create SRC and BIN tarballs for release,
584595
# shellcheck disable=SC2046,SC2086
585596
run_and_redirect "${LOGDIR}/mvn_${target}.log" \
586597
"${MVN}" ${MVN_ARGS[*]} ${target} \
587-
-Pdist,src,yarn-ui \
598+
-P${PROFILES} \
588599
"${signflags[@]}" \
589600
-DskipTests -Dtar $(hadoop_native_flags)
590601

0 commit comments

Comments
 (0)