mirror of
https://gitee.com/dromara/hutool.git
synced 2025-09-18 17:48:17 +08:00
clean history
This commit is contained in:
21
bin/update_version.sh
Executable file
21
bin/update_version.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
#------------------------------------------------
|
||||
# 升级Hutool版本,包括:
|
||||
# 1. 升级pom.xml中的版本号
|
||||
# 2. 替换README.md和docs中的版本号
|
||||
#------------------------------------------------
|
||||
|
||||
if [ ! -n "$1" ]; then
|
||||
echo "ERROR: 新版本不存在,请指定参数1"
|
||||
exit
|
||||
fi
|
||||
|
||||
# 替换所有模块pom.xml中的版本
|
||||
mvn versions:set -DnewVersion=$1
|
||||
|
||||
# 不带-SNAPSHOT的版本号,用于替换其它地方
|
||||
version=${1%-SNAPSHOT}
|
||||
|
||||
# 替换其它地方的版本
|
||||
$(pwd)/bin/replaceVersion.sh "$version"
|
Reference in New Issue
Block a user