How to define Gradle’s home in IDEA?
installed on a Mac via Homebrew, the path will be
/usr/local/opt/gradle/libexec
is preferable to
/usr/local/Cellar/gradle/X.X/libexec
since the former will survive version upgrades.
Reference: https://stackoverflow.com/questions/18495474/how-to-define-gradles-home-in-idea