Update build_and_publish.sh

This commit is contained in:
InsanusMokrassar 2020-09-27 23:40:03 +06:00 committed by GitHub
parent 881d28fac3
commit c1566f0c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,23 +9,7 @@ function assert_success() {
fi
}
function build_and_publish() {
export RELEASE_MODE=true
project="$1"
assert_success ./gradlew clean "$project:clean" "$project:build" "$project:publishToMavenLocal" "$project:bintrayUpload"
}
pids=()
while [ -n "$1" ]
do
build_and_publish "$1" &
pids[${#pids[*]}]=$!
shift
done
for item in ${pids[*]}
do
wait "$item"
done