Skip to content

Commit 4eca748

Browse files
committed
release-version: die if release prep fails
1 parent 1819e47 commit 4eca748

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

release-version.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ exclude them by setting license.excludes in your POM; e.g.:
199199
# Prepare new release without pushing (requires the release plugin >= 2.1).
200200
$DRY_RUN mvn $BATCH_MODE release:prepare -DpushChanges=false -Dresume=false $TAG \
201201
$PROFILE $DEV_VERSION -DreleaseVersion="$VERSION" \
202-
"-Darguments=-Dgpg.skip=true ${EXTRA_ARGS# }" &&
202+
"-Darguments=-Dgpg.skip=true ${EXTRA_ARGS# }" ||
203+
die 'The release preparation step failed -- look above for errors and fix them.
204+
Use "mvn javadoc:javadoc | grep error" to check for javadoc syntax errors.'
203205

204206
# Squash the maven-release-plugin's two commits into one.
205207
if test -z "$DRY_RUN"

0 commit comments

Comments
 (0)