- Download the raw script:
curl -o ~/.local/bin/gradlew https://gist.githubusercontent.com/mpetuska/86c05e02b2199e5a2f186da0c2c3f2fd/raw/gradlew.sh
- Adjust permissions:
chmod +x ~/.local/bin/gradlew
- (Optional) Make a shortcut:
ln -s ~/.local/bin/gradlew ~/.local/bin/gw
There's also an installation script available:
curl https://gist.githubusercontent.com/mpetuska/86c05e02b2199e5a2f186da0c2c3f2fd/raw/installGW.sh | bash