zzheads zzheads - 2 months ago 7
Java Question

How set up gradle on Mac

Moved from Windows to MacOS (El Capitan) recently, so having troubles with compiling my project.

sh gradlew stage


outputs:

: command not found
: command not found
: command not found
: command not found
: command not found
'radlew: line 18: syntax error near unexpected token `{
'radlew: line 18: `warn ( ) {


I have installed IntelliJ Idea IDE, installed Java, do I have make any additional setup on MacOS?
My final target is deploy my project on Heroku, now I even can't compile project.. So any help would be greatly appreciated.

Answer

The Gradle Wrapper file, gradlew, is a bash script itself. You'd execute your Gradle command via ./gradlew stage.