Skip to content

Commit 63ed3e4

Browse files
committed
TEMP: include needed -pl flag in release.properties
1 parent 933ada8 commit 63ed3e4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

release-version.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,24 @@ test -n "$tag" &&
534534
# the release.properties file to use the public (https://github.com/...) URL.
535535
# This is OK, since release:perform does not need write access to the repo.
536536
$DRY_RUN sed -i.bak -e 's|^scm.url=scm\\:git\\:git@github.com\\:|scm.url=scm\\:git\\:https\\://github.com/|' release.properties &&
537+
538+
# For multi-module: add -pl to arguments so release:perform only builds the released module
539+
if test "$IS_AGGREGATOR"
540+
then
541+
debug "Adding -pl $MODULE_NAME to release.properties arguments"
542+
# Extract existing arguments, append -pl, write back
543+
existing_args=$(sed -n 's/^exec.additionalArguments=//p' release.properties)
544+
if test -n "$existing_args"
545+
then
546+
# Append to existing args
547+
$DRY_RUN sed -i.bak2 "s|^exec.additionalArguments=.*|exec.additionalArguments=$existing_args -pl $MODULE_NAME|" release.properties
548+
else
549+
# Add new line
550+
echo "exec.additionalArguments=-pl $MODULE_NAME" >> release.properties
551+
fi
552+
test -f release.properties.bak2 && $DRY_RUN rm release.properties.bak2
553+
fi &&
554+
537555
$DRY_RUN rm release.properties.bak &&
538556
$DRY_RUN git checkout "$tag" &&
539557

0 commit comments

Comments
 (0)