MicroUtils/build_and_publish.sh

16 lines
303 B
Bash
Raw Normal View History

2020-09-27 16:55:50 +00:00
#!/bin/bash
function assert_success() {
"${@}"
local status=${?}
if [ ${status} -ne 0 ]; then
echo "### Error ${status} at: ${BASH_LINENO[*]} ###"
exit ${status}
fi
}
2020-09-27 17:40:03 +00:00
export RELEASE_MODE=true
project="$1"
2020-09-27 16:55:50 +00:00
2020-10-14 18:26:37 +00:00
assert_success ./gradlew $project:build $project:bintrayUpload