File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments