Skip to content

Commit 8379c1f

Browse files
committed
release-version.sh: add --skip-license-update hint
1 parent 576c6ba commit 8379c1f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

release-version.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,16 @@ test "$FETCH_HEAD" = "$(git merge-base $FETCH_HEAD $HEAD)" ||
202202
# Ensure license headers are up-to-date.
203203
test "$SKIP_LICENSE_UPDATE" -o -z "$licenseName" -o "$licenseName" = "N/A" || {
204204
mvn license:update-project-license license:update-file-header &&
205-
git add LICENSE.txt ||
206-
die 'Failed to update copyright blurbs'
205+
git add LICENSE.txt || die 'Failed to update copyright blurbs.
206+
You can skip the license update using the --skip-license-update flag.'
207207
no_changes_pending ||
208208
die 'Copyright blurbs needed an update -- commit changes and try again.
209209
Or if the license headers are being added erroneously to certain files,
210210
exclude them by setting license.excludes in your POM; e.g.:
211211
212212
<license.excludes>**/script_templates/**</license.excludes>
213-
'
213+
214+
Alternately, try again with the --skip-license-update flag.'
214215
}
215216

216217
# Prepare new release without pushing (requires the release plugin >= 2.1).

0 commit comments

Comments
 (0)