File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 61
61
git config --global user.name "GitHub Actions"
62
62
63
63
- name : Un-SNAP
64
- run : |
65
- mvnwPath=$(readlink -f ./mvnw)
66
- modules=("") # root
67
- modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
68
- for i in "${modules[@]}"
69
- do
70
- echo "Processing $i/pom.xml"
71
- (cd "$i" && $mvnwPath -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false)
72
- done
64
+ run : ./mvnw -B versions:set -DremoveSnapshot -DprocessAllModules -DgenerateBackupPoms=false
73
65
74
66
- name : Get version
75
67
id : version
@@ -185,15 +177,7 @@ jobs:
185
177
git pull
186
178
187
179
- name : Inc Version and SNAP
188
- run : |
189
- mvnwPath=$(readlink -f ./mvnw)
190
- modules=("") # root
191
- modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
192
- for i in "${modules[@]}"
193
- do
194
- echo "Processing $i/pom.xml"
195
- (cd "$i" && $mvnwPath -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} -DgenerateBackupPoms=false -DnextSnapshot=true -DupdateMatchingVersions=false)
196
- done
180
+ run : ./mvnw -B versions:set -DnextSnapshot -DprocessAllModules -DgenerateBackupPoms=false
197
181
198
182
- name : Git Commit and Push
199
183
run : |
You can’t perform that action at this time.
0 commit comments