mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-27 20:21:56 +08:00
更新构建shell
This commit is contained in:
20
build-config/build-java.sh
Executable file
20
build-config/build-java.sh
Executable 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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user