Gradle not working on OSX


(Gradle Help) #1

When I run the gradle script (on my Mac), it says “Welcome to Gradle 1.12.” and “BUILD SUCCESSFUL”, but when I try to run a command like <gradle -version>, I get <-bash: gradle: command not found> http://prntscr.com/3uk3bm

Please help, Thank you


(Peter Niederwieser) #2

You either need to put the Gradle installation’s ‘bin’ directory on your OS path, or (preferably) generate a ‘gradlew’ script for the build. For the latter, see the “Gradle Wrapper” chapter in the Gradle User Guide.