1 Star 0 Fork 0

fastjrun/Flapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
release.sh 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
Ben Fagin 提交于 2015-03-31 07:36 +08:00 . tweaks
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "usage: <version> <repositoryURL>"
exit 1
fi
version=$1
repository=$2
# replace all development versions with release version
replacement="s/0.0-DEVELOPMENT/$version/g"
find . -name "pom.xml" -exec sed -i -e "$replacement" {} \;
find . -name "build.gradle" -exec sed -i -e "$replacement" {} \;
# commit tag of version name
#git add pom.xml
#git add flapi-build-plugin/pom.xml
#git add flapi-build-project/pom.xml
#git add flapi-build-test-consumer/pom.xml
#git add flapi-build-test-producer/pom.xml
#git add flapi-descriptor/pom.xml
#git add flapi-gradle-plugin/pom.xml
#git add flapi-parent/pom.xml
#git add flapi-plugin/pom.xml
#git add flapi-runtime/pom.xml
#git commit -m"releasing version $version"
#git tag $version
# build and release the project
cd flapi-parent
mvn -DaltDeploymentRepository=micro::default::"$2" clean install deploy
cd ..
# replace all release versions with development version
#replacement="s/$version/0.0-DEVELOPMENT/g"
#find . -name "pom.xml" -exec sed -i -e "$replacement" {} \;
# reset to the last working commit
#git reset --hard HEAD~1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fastjrun/Flapi.git
git@gitee.com:fastjrun/Flapi.git
fastjrun
Flapi
Flapi
master

搜索帮助