Skip to content

Instantly share code, notes, and snippets.

@shivam-tripathi
Created January 19, 2021 07:16
Show Gist options
  • Save shivam-tripathi/11688eb2ab4e1244eaa49fbce597ad46 to your computer and use it in GitHub Desktop.
Save shivam-tripathi/11688eb2ab4e1244eaa49fbce597ad46 to your computer and use it in GitHub Desktop.
Install Java and Gradle
pushd ~
sudo apt install unzip zip
curl https://get.sdkman.io -o ~/sdkman.sh
bash ~/sdkman.sh
source "/home/ubuntu/.sdkman/bin/sdkman-init.sh"
sdk install java 11.0.9.open-adpt
wget -O gradle.zip https://services.gradle.org/distributions/gradle-6.6.1-bin.zip
unzip ~/gradle.zip -d ~/.gradle-install
echo "alias gradle=~/.gradle-install/gradle-6.6.1/bin/gradle" >> .zshrc
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment