***EDIT2*** The problem is fixed.
***EDIT*** The problem has changed, please look at the 8th reply!
I have been having this problem with forge and I can't seem to figure out how to fix it and work on modding.
I start out with opening terminal (This is on Mac btw), and I make sure it's location is the right place and I type this:
./gradlew setupDevWorkspace eclipse
It starts out okay, but then it fails at :deobfbinjar
Like the picture shows, it's caused by 'Java heap space', so I googled it, and found this post:
https://github.com/MinecraftForge/ForgeGradle/issues/48
I did the fix on that page, but it didn't work. I have tried adding more to the file, as someone has said on the page, but it still doesn't work! I have 16gb of ram and I've tried using 1, 2, 4, and 8 gb of ram but still nothing.
Maybe the fix is simple, but any help is appreciated.