1
0
mirror of synced 2026-04-27 12:08:46 +08:00

🥚 添加实用工具,方便每次发版批量更新依赖版本

This commit is contained in:
yadong.zhang
2019-12-24 19:34:39 +08:00
parent 0700d7ee25
commit e868d43ca3
5 changed files with 81 additions and 2 deletions

19
bin/updVersion.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
#------------------------------------------------
# 参考自 hutool 工具
# 升级justauth版本包括
# 1. 升级pom.xml中的版本号
# 2. 替换README.md中的版本号
#------------------------------------------------
if [ ! -n "$1" ]; then
echo "ERROR: 新版本不存在请指定参数1"
exit
fi
# 替换所有模块pom.xml中的版本
mvn versions:set -DnewVersion=$1
# 替换其它地方的版本
source $(pwd)/bin/repVersion.sh "$1"