Improve mbump version

main
Yax 2 years ago
parent b9f0aac2a1
commit 3495e56f85

@ -47,7 +47,16 @@ abbr -a mvnp mvn -Dmaven.test.skip -Dmaven.javadoc.skip=true -DskipMunitTests cl
abbr -a mvni mvn -Dmaven.test.skip -Dmaven.javadoc.skip=true clean install abbr -a mvni mvn -Dmaven.test.skip -Dmaven.javadoc.skip=true clean install
abbr -a mvnd mvn -Dmaven.test.skip -Dmaven.javadoc.skip=true deploy -P profile-nexus abbr -a mvnd mvn -Dmaven.test.skip -Dmaven.javadoc.skip=true deploy -P profile-nexus
function mbump function mbump
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$argv if test (count $argv) -eq 0
echo "Usage: mbump <version> (means -SNAPSHOT) or mbump <version> <kind> (kind is R or S)"
else
if test (count $argv) -gt 1; and test $argv[2] = 'R';
set kind = 'RELEASE'
else
set kind = 'SNAPSHOT'
end
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$argv[1]-$kind
end
end end
abbr -a d python3 ~/.local/bin/deploy.py abbr -a d python3 ~/.local/bin/deploy.py

Loading…
Cancel
Save