Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Set default GRADLE_OPTS for the app
- if [ -z $GRADLE_OPTS ]; then
- export GRADLE_OPTS="${CONFIG_FILE:+-DconfigFilePath=$CONFIG_FILE} ${CONSUL_URL:+-DconsulUrl=$CONSUL_URL} ${IS_ENV:+-Denvironment=$IS_ENV} ${APP_NAME:+-DappName=$APP_NAME}"
- fi
- _retries=3
- until ./gradlew --no-daemon --build-cache
- do
- _retries=$((_retries-1))
- [ $_retries -eq 0 -a $? -ne 0 ] && { >&2 echo "Building gradle cache failed!"; exit 1; }
- done
- exec ./gradlew --no-daemon update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement