更新构建shell

This commit is contained in:
陈云志
2020-12-23 14:15:26 +08:00
parent dbe2a5a8ad
commit 858d00b1bf
11 changed files with 43 additions and 38 deletions

20
build-config/build-java.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
## 编译每个服务
for gfile in $(find . -name "build.gradle")
do
if [[ $1 = cl ]];then
gradle -b $gfile clean &
echo -e "\033[32m----------------- $gfile 模块 清理 成功 ---------------------- \033[0m"
else
gradle -b $gfile clean build -x test -DbuildProduct=true -DreleaseVersion=$1
echo -e "\033[32m----------------- $gfile 模块编译成功 ---------------------- \033[0m"
fi
done