Gradle Cheat Sheet

January 1, 2023
 
Common Gradle Tasks

Install Gradle on Mac

You could install with a package manager, but I will be installing manually.
  • Download the latest version of gradle. Grab the binary-only download: https://gradle.org/releases/
  • Unpack the download file
  • Push into the opt folder: /opt/gradle/gradle-7.6
  • Update ~/.zshrc to contain the following export GRADLE_HOME='/opt/gradle/gradle-7.6'
  • Update ~/.zshrc to contain the following PATH=$PATH:$GRADLE_HOME/bin
  • Close and Terminal Windows and re-open
  • Confirm install/update in the terminal window by executing gradle -v

 
Return to articles