Created
July 24, 2019 10:55
-
-
Save debraj-manna/b9244a59de562c748fcc26b7418e7b84 to your computer and use it in GitHub Desktop.
Installing gradle on macos
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
## Download Gradle | |
To download visit Gradle Releases Page. Download the complete distribution which includes binaries, sources and offline documentation. For example you can download the latest release of Gradle, as of this update the version is gradle-4.0.2-all.zip. | |
## Upacking Gradle and Configure Environment Variables | |
1. Open Terminal.app. | |
2. Create a new directory `sudo mkdir /usr/local/gradle`. | |
3. Extract the downloaded Gradle distribution archive by executing `sudo unzip gradle-4.0.2-all.zip -d /usr/local/gradle`. | |
4. Edit .bash_profile in your home directory to add GRADLE_HOME variable with the following line `export GRADLE_HOME=/usr/local/gradle/gradle-4.0.2` | |
5. Also update the PATH variable to include `$GRADLE_HOME/bin`. If you don’t already have the PATH variable add the following line `export PATH=$GRADLE_HOME/bin:$PATH` | |
6. Run `source ~/.bash_profile` to executes the update version of .bash_profile. Or you can open a new Terminal.app to make this changes active. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment