feat(gradle): Aliased to gradlew as well as gradle.

Added this change to the `README.md`.

Also cleaned/reworded up the `README.md` a touch.
This commit is contained in:
G'lek Tarssza 2026-03-12 07:49:40 -06:00
commit 32b1498c1b
No known key found for this signature in database
GPG key ID: AD004E22E8AB1E28
2 changed files with 17 additions and 8 deletions

View file

@ -13,9 +13,9 @@ function gradle-or-gradlew() {
dir="${dir:h}"
done
# if gradlew found, run it instead of gradle
# if local gradle wrapper found, run it instead of gradle
if [[ -f "$project_root/gradlew" ]]; then
echo "executing gradlew instead of gradle"
echo "executing local gradle wrapper instead of gradle"
"$project_root/gradlew" "$@"
else
command gradle "$@"
@ -23,4 +23,5 @@ function gradle-or-gradlew() {
}
alias gradle=gradle-or-gradlew
alias gradlew=gradle-or-gradlew
compdef _gradle gradle-or-gradlew