Skip to content

Instantly share code, notes, and snippets.

@kloudsamurai
Last active December 10, 2021 19:11
Show Gist options
  • Save kloudsamurai/35385c8a6c0b4b9b52a329bc30365dc8 to your computer and use it in GitHub Desktop.
Save kloudsamurai/35385c8a6c0b4b9b52a329bc30365dc8 to your computer and use it in GitHub Desktop.
Install Gradle on Amazon Linux Cloud9
#!/bin/bash
gradle_version=7.3.1
wget -c https://services.gradle.org/distributions/gradle-${gradle_version}-bin.zip
sudo unzip gradle-${gradle_version}-bin.zip -d /opt
sudo ln -s /opt/gradle-${gradle_version} /opt/gradle
printf "export GRADLE_HOME=/opt/gradle\nexport PATH=\$PATH:\$GRADLE_HOME/bin\n" | sudo tee /etc/profile.d/gradle.sh
source /etc/profile.d/gradle.sh
# check installation
gradle -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment