mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-18 14:23:50 +00:00
19 lines
419 B
Bash
Executable File
19 lines
419 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function assert_success() {
|
|
"${@}"
|
|
local status=${?}
|
|
if [ ${status} -ne 0 ]; then
|
|
echo "### Error ${status} at: ${BASH_LINENO[*]} ###"
|
|
exit ${status}
|
|
fi
|
|
}
|
|
|
|
export RELEASE_MODE=true
|
|
project="$1"
|
|
|
|
assert_success ./gradlew clean
|
|
assert_success ./gradlew "$project:build"
|
|
assert_success ./gradlew "$project:publishToMavenLocal"
|
|
assert_success ./gradlew "$project:bintrayUpload"
|