Building Jmonkey from Git using gradle, build problems

So I’m kinda new when it comes to building from source. I’m hoping I might be able to find out what exactly I’m doing wrong here. I’m trying to build Jmonkey from source through the command line and I run into this problem

I’m not really sure what exactly I’m doing wrong. Any help would be greatly appreciated.

Did you just download the code somehow or did you actually check out the git repo?

I used the download zip link on github, am I supposed to clone it?

Did you run gradle or gradlew? If you run the build again, does it get stuck in the same place?

I used gradlew, and I did get the error multiple times
Edit:
I used the command: “gradlew build” previously and I was getting the “execution failed for task” error. I went ahead and cloned the repo and did the same command and it seemed to work, YAY!

OK, I fixed it so that the engine can be built without a check out, however then the git hash and branch will not be available.