-
-
Save l1x/d8ba66343fceb927d691 to your computer and use it in GitHub Desktop.
brew tap homebrew/versions | |
brew search gradle | |
brew install homebrew/versions/gradle112 | |
gradle -version | |
brew link --overwrite gradle112 | |
gradle -version |
jhlee8804
commented
Nov 24, 2017
brew tap homebrew/versions
Error: homebrew/versions was deprecated. This tap is now empty as all its formulae were migrated.
This no longer works :(
This is for installing gradle v4.9
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/8eb5e52e70f8fba2f24c65e398d62ad87e092152/Formula/gradle.rb
FInd out formula(ruby script) for the version you need and then install it directly
:)
Using @bipin-nag's method above I was able to install 5.6.4 (as 6 isn't working for me)
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/0474aefa73fe6e7a7a68592cb65819d08a9adb31/Formula/gradle.rb
gradle 5.4.1
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/639b4c8d71af8cae918d771c1a990ae128f94777/Formula/gradle.rb
Gradle 5.6.4 (last 5.x version and the latest (truly) supported by Android as of Q1/2020):
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/be6b82f442d8a72170bde83b2b2e79a66f342259/Formula/gradle.rb
meanstack@meanstacks-MacBook-Pro api % brew cask install [email protected]
Error: Cask '[email protected]' is unavailable: No Cask with this name exists.
why wasnt version 6 working for you
why cant w specifically install a peritnet rebvsion insted of the commit install which brew doesnt like
@bipin-nag's method worked like a charm for me - many thanks!
gradle 3.3
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/74edf375423cbdf042bcab464e65f09426c0190f/Formula/gradle.rb
Here is all gradle commits history.
https://gist.github.com/dimshik100/af28c2146651cae9aa9df94b7144f060
You can try to install them by replacing the commit of the relevant version inside the brew command
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/<COMMIT>/Formula/gradle.rb
commit a55e68888262857e299aa77b3ffa56b767702993
Date: Feb 9 2019
gradle 5.2.1 (#36856)
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/a55e68888262857e299aa77b3ffa56b767702993/Formula/gradle.rb
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/a55e68888262857e299aa77b3ffa56b767702993/Formula/gradle-completion.rb
Looks like installation from a GitHub url doesn't work anymore, but you can download the file and run it locally with
brew install --build-from-source gradle.rb
Looks like installation from a GitHub url doesn't work anymore, but you can download the file and run it locally with
brew install --build-from-source gradle.rb
Thanks
I created gradle.rb for gradle 6.8.1