Forked from cpuspellcaster/install-gradle-centos.sh
Last active
August 29, 2015 14:06
-
-
Save bspkrs/7dfbe2b7e917b664f5d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# installs to /opt/gradle | |
# existing versions are not overwritten/deleted | |
# seamless upgrades/downgrades | |
# $GRADLE_HOME points to latest *installed* (not released) | |
gradle_version=1.11 | |
wget -N http://services.gradle.org/distributions/gradle-${gradle_version}-all.zip | |
sudo mkdir -p /opt/gradle | |
sudo unzip -uo gradle-${gradle_version}-all.zip -d /opt/gradle/ | |
sudo ln -sfn /opt/gradle/gradle-${gradle_version} /opt/gradle/latest | |
sudo printf "export GRADLE_HOME=/opt/gradle/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin" | sudo tee /etc/profile.d/gradle.sh > /dev/null | |
. /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