mirror of
https://gitee.com/dromara/hutool.git
synced 2025-09-18 17:48:17 +08:00
clean history
This commit is contained in:
7
bin/check_dependency_updates.sh
Executable file
7
bin/check_dependency_updates.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
#--------------------------------------
|
||||
# Check dependency, thanks to t-io
|
||||
#--------------------------------------
|
||||
|
||||
mvn versions:display-dependency-updates
|
6
bin/commit.sh
Executable file
6
bin/commit.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
git add .
|
||||
git commit -am "$1"
|
||||
|
||||
bin/push_dev.sh
|
3
bin/deploy.sh
Executable file
3
bin/deploy.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
mvn clean deploy -P release
|
3
bin/install.sh
Executable file
3
bin/install.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec mvn clean source:jar javadoc:javadoc install -Dmaven.test.skip=false -Dmaven.javadoc.skip=false
|
3
bin/javadoc.sh
Executable file
3
bin/javadoc.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec mvn javadoc:javadoc
|
11
bin/logo.sh
Executable file
11
bin/logo.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo '========================================'
|
||||
echo ' __ __ __ __ '
|
||||
echo ' / / / /__ __ / /_ ____ ____ / / '
|
||||
echo ' / /_/ // / / // __// __ \ / __ \ / / '
|
||||
echo ' / __ // /_/ // /_ / /_/ // /_/ // / '
|
||||
echo '/_/ /_/ \____/ \__/ \____/ \____//_/ '
|
||||
echo ''
|
||||
echo '-----------http://hutool.cn/------------'
|
||||
echo '========================================'
|
9
bin/push_dev.sh
Executable file
9
bin/push_dev.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo -e "\033[32mCheckout to v4-dev\033[0m"
|
||||
git checkout v4-dev
|
||||
|
||||
echo -e "\033[32mPush to origin v4-dev\033[0m"
|
||||
git push origin v4-dev
|
||||
echo -e "\033[32mPush to osc v4-dev\033[0m"
|
||||
git push osc v4-dev
|
12
bin/push_master.sh
Executable file
12
bin/push_master.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo -e "\033[32mCheckout to v4-master\033[0m"
|
||||
git checkout v4-master
|
||||
|
||||
echo -e "\033[32mMerge v4-dev branch\033[0m"
|
||||
git merge v4-dev -m 'Prepare release'
|
||||
|
||||
echo -e "\033[32mPush to origin v4-master\033[0m"
|
||||
git push origin v4-master
|
||||
echo -e "\033[32mPush to osc v4-master\033[0m"
|
||||
git push osc v4-master
|
34
bin/replaceVersion.sh
Executable file
34
bin/replaceVersion.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
#-----------------------------------------------------------
|
||||
# 此脚本用于每次升级Hutool时替换相应位置的版本号
|
||||
#-----------------------------------------------------------
|
||||
|
||||
set -o errexit
|
||||
|
||||
pwd=$(pwd)
|
||||
|
||||
echo "当前路径:${pwd}"
|
||||
|
||||
if [ -n "$1" ];then
|
||||
new_version="$1"
|
||||
old_version=`cat ${pwd}/bin/version.txt`
|
||||
echo "$old_version 替换为新版本 $new_version"
|
||||
else
|
||||
# 参数错误,退出
|
||||
echo "ERROR: 请指定新版本!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -n "$old_version" ]; then
|
||||
echo "ERROR: 旧版本不存在,请确认bin/version.txt中信息正确"
|
||||
exit
|
||||
fi
|
||||
|
||||
# 替换README.md中的版本
|
||||
sed -i "s/${old_version}/${new_version}/g" $pwd/README.md
|
||||
# 替换docs/index.html中的版本
|
||||
sed -i "s/${old_version}/${new_version}/g" $pwd/docs/js/version.js
|
||||
|
||||
# 保留新版本号
|
||||
echo "$new_version" > $pwd/bin/version.txt
|
3
bin/test.sh
Executable file
3
bin/test.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec mvn test
|
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"
|
1
bin/version.txt
Executable file
1
bin/version.txt
Executable file
@@ -0,0 +1 @@
|
||||
4.6.2
|
Reference in New Issue
Block a user