mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-26 12:08:45 +00:00
Update build_and_publish.sh
This commit is contained in:
parent
881d28fac3
commit
c1566f0c53
@ -9,23 +9,7 @@ function assert_success() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function build_and_publish() {
|
export RELEASE_MODE=true
|
||||||
export RELEASE_MODE=true
|
project="$1"
|
||||||
project="$1"
|
|
||||||
|
|
||||||
assert_success ./gradlew clean "$project:clean" "$project:build" "$project:publishToMavenLocal" "$project:bintrayUpload"
|
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user