Skip to main content

Install Gradle on Mac

Published: 2019-10-11 • Last updated: 2019-10-19

  1. Install Java, version 8 or higher

  2. Download Gradle from the releases page. We’ll use v5.6.2 in this example

     curl -O -L
  3. Make dir then unzip it

     mkdir -p ~/bin/gradle
     unzip -d ~/bin/gradle
  4. Set environment variables in your bash config file, e.g. ~/.bash_profile

     export GRADLE_HOME=$HOME/bin/gradle/gradle-5.6.2
     export PATH=$GRADLE_HOME/bin:$PATH
  5. Source bash config file

     source ~/.bash_profile
  6. Confirm installation

     gradle --version