Are you like me? Did you install Gradle via brew to check it out? Did you enable the bundled Gradle plugin for IntelliJ? Did you then have trouble figuring out what the Gradle home was? Here’s an easy way to get it. Create a build.gradle with:

task getHomeDir << {
	println gradle.gradleHomeDir
}

Then run it with:

gradle getHomeDir

You should see something like:

/usr/local/Cellar/gradle/1.6/libexec

You can use that to populate the Gradle plugin, and you’re off.