-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
set -eEuo pipefail | ||
# adjust current dir to script dir | ||
cd "$(dirname "$(readlink -f "$0")")" | ||
|
||
source common.sh | ||
|
||
# shellcheck disable=SC2154 | ||
[ $# -ne 1 ] && die "need 1 argument for version!$nl${nl}usage:$nl $0 4.x.y" | ||
|
||
readonly bump_version="$1" | ||
|
||
source common_build.sh | ||
|
||
( | ||
headInfo "bump cola version of cola-components to $bump_version" | ||
cd ../cola-components/ | ||
|
||
MVN_WITH_BASIC_OPTIONS \ | ||
org.codehaus.mojo:versions-maven-plugin:2.8.1:set \ | ||
-DgenerateBackupPoms=false \ | ||
-DnewVersion="$bump_version" | ||
) | ||
|
||
( | ||
headInfo "bump cola version of cola-archetypes to $bump_version" | ||
cd ../cola-archetypes/ | ||
|
||
MVN_WITH_BASIC_OPTIONS \ | ||
org.codehaus.mojo:versions-maven-plugin:2.8.1:set \ | ||
-DgenerateBackupPoms=false \ | ||
-DnewVersion="$bump_version" | ||
|
||
logAndRun -s \ | ||
sed -ri 's~(<cola.components.version>)(.*)(</cola.components.version>)~\1'"$bump_version"'\3~' \ | ||
cola-archetype-service/src/main/resources/archetype-resources/pom.xml \ | ||
cola-archetype-web/src/main/resources/archetype-resources/pom.xml | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters