21 Star 106 Fork 56

geekhekr / iotos-soft-gateway

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
deploy.sh 797 Bytes
一键复制 编辑 原始数据 按行查看 历史
sdvdxl 提交于 2023-11-21 17:01 . 3.5.29
#!/usr/bin/env bash
# 使用 ./deploy install 安装到本地
# ./deploy deploy 生成 maven jar包
# ./deploy upload 生成 maven jar 包并 commit
set -e
VERSION="3.5.29"
echo "版本号:$VERSION"
updateVersion() {
./mvnw clean
./mvnw versions:set -DnewVersion=$VERSION
./mvnw versions:commit
# ./mvnw versions:update-properties
./mvnw versions:update-child-modules
}
act=$1
remote() {
updateVersion
./mvnw deploy -P deploy
}
install() {
updateVersion
./mvnw clean install -P remote -DskipTests=true
}
if [[ "remote" == "$act" ]]; then
remote
elif [[ "version" == "$act" ]]; then
updateVersion
elif [[ "install" == "$act" || "" == "$act" ]]; then
install
else
echo 'remote(发布到maven仓库) ,version(更新版本) 或者 install(发布到本地仓库)'
fi
Java
1
https://gitee.com/geekhekr/iotos-soft-gateway.git
git@gitee.com:geekhekr/iotos-soft-gateway.git
geekhekr
iotos-soft-gateway
iotos-soft-gateway
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891