Gradle Installation: Difference between revisions
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Gradle# | * [[Gradle Operations#Installation|Gradle Operations]] | ||
* [[brew#Subjects|Homebrew]] | * [[brew#Subjects|Homebrew]] | ||
Line 9: | Line 9: | ||
Will install Gradle in /usr/local/Cellar/gradle/<''gradle-version''> | Will install Gradle in /usr/local/Cellar/gradle/<''gradle-version''> | ||
brew upgrade gradle | |||
==Install a Specific Version== | |||
===With Brew=== | |||
To install a specific version with brew, follow the procedure described here and adjust for Gradle: {{Internal|Brew_Operations#Install_a_Specific_Package_.28Formula.29_Version|Install a Specific Package (Formula) Version with brew}} | |||
===Natively=== | |||
To install a specific version as downloaded from the web site: | |||
<syntaxhighlight lang='bash'> | |||
sudo mkdir /usr/local/manual | |||
/usr/local/manual/ | |||
sudo mv ~/Downloads/gradle-6.2.2-all.zip . | |||
sudo unzip gradle-6.2.2-all.zip | |||
sudo ln -s ./gradle-6.2.2 gradle | |||
export PATH=/usr/local/manual/gradle/bin:${PATH} | |||
gradle --version | |||
</syntaxhighlight> |
Latest revision as of 22:08, 3 October 2020
Internal
Homebrew
brew install gradle
Will install Gradle in /usr/local/Cellar/gradle/<gradle-version>
brew upgrade gradle
Install a Specific Version
With Brew
To install a specific version with brew, follow the procedure described here and adjust for Gradle:
Natively
To install a specific version as downloaded from the web site:
sudo mkdir /usr/local/manual
/usr/local/manual/
sudo mv ~/Downloads/gradle-6.2.2-all.zip .
sudo unzip gradle-6.2.2-all.zip
sudo ln -s ./gradle-6.2.2 gradle
export PATH=/usr/local/manual/gradle/bin:${PATH}
gradle --version