@@ -30,6 +30,7 @@ SCIJAVA_THIRDPARTY_REPOSITORY=$SCIJAVA_BASE_REPOSITORY/thirdparty
30
30
# Parse command line options.
31
31
BATCH_MODE=--batch-mode
32
32
SKIP_VERSION_CHECK=
33
+ SKIP_LICENSE_UPDATE=
33
34
SKIP_PUSH=
34
35
SKIP_GPG=
35
36
TAG=
46
47
--dry-run) DRY_RUN=echo;;
47
48
--no-batch-mode) BATCH_MODE=;;
48
49
--skip-version-check) SKIP_VERSION_CHECK=t;;
50
+ --skip-license-update) SKIP_LICENSE_UPDATE=t;;
49
51
--skip-push) SKIP_PUSH=t;;
50
52
--tag=* )
51
53
! git rev-parse --quiet --verify refs/tags/" ${1# --* =} " ||
@@ -90,6 +92,7 @@ Where <version> is the version to release. If omitted, it will prompt you.
90
92
Options include:
91
93
--dry-run - Simulate the release without actually doing it.
92
94
--skip-version-check - Violate SemVer version numbering intentionally.
95
+ --skip-license-update - Skips update of the copyright blurbs.
93
96
--skip-push - Do not push to the remote git repository.
94
97
--dev-version=<x.y.z> - Specify next development version explicitly;
95
98
e.g.: if you release 2.0.0-beta-1, by default
@@ -173,12 +176,17 @@ test "$FETCH_HEAD" = "$(git merge-base $FETCH_HEAD $HEAD)" ||
173
176
die " 'master' is not up-to-date"
174
177
175
178
# Ensure license headers are up-to-date.
176
- test -z " $licenseName " -o " $licenseName " = " N/A" || {
179
+ test " $SKIP_LICENSE_UPDATE " -o -z " $licenseName " -o " $licenseName " = " N/A" || {
177
180
mvn license:update-project-license license:update-file-header &&
178
181
git add LICENSE.txt ||
179
182
die ' Failed to update copyright blurbs'
180
183
no_changes_pending ||
181
- die ' Copyright blurbs needed an update -- commit changes and try again'
184
+ die ' Copyright blurbs needed an update -- commit changes and try again.
185
+ Or if the license headers are being added erroneously to certain files,
186
+ exclude them by setting license.excludes in your POM; e.g.:
187
+
188
+ <license.excludes>**/script_templates/**</license.excludes>
189
+ '
182
190
}
183
191
184
192
# Prepare new release without pushing (requires the release plugin >= 2.1).
0 commit comments