May want to check if `gradle` is actually installed first. I know that having `-e` somewhat takes care of it, but it'd be more user-friendly to use something like...

```bash
if ! which gradle; then
    echo 'gradle not found in $PATH. Please install gradle.' >&2
    exit 1
fi
```