In the last tutorial I explained most of the important changes in Forge Gradle. In this tutorial is going the set up for Gradle. For this tutorial I’m going to assume you have followed the set up tutorial for Minecraft 1.6.2. If you haven’t you should follow the parts about the Java JDK and Eclipse before continuing.
The first thing you have to do is download gradle. You can download gradle right here. Just like Eclipse the file you downloaded doesn’t require any installation. Instead you can unzip it and it will be mostly ready for use. I suggest storing it somewhere similar to your eclipse files.
Once you have extracted it there is something you have to do to make sure it is installed completely. Open the start window and right click on Computer and then click Properties. In here go to Advanced system settings on the right. This will open up a new window which should be open on the advanced tab. In that tab you should see a button called Environmental Variables… Click this button which will open yet another window. You should have been here before if you have properly set up Java.
With the Java part you have created a variable called Path and it should point to the location where you have the JDK installed. Select that value and click edit. You will have to add a second Path to this variable. You can do this by adding a semicolon (;) directly behind that. Next you have to get the folder structure name of gradle. Go to the location where you have it extracted and then select the bin folder. Then copy the whole folder structure name. Then right after the semicolon you should paste that name. Make sure that there are no spaces between the semicolon and the 2 paths. Once you have done this you can close out of this window.
To check if you have done this correctly there are 2 things you should do. You should open up the command prompt and first type javac and hit enter. The cmd should then print out several lines saying something like Usage: javac <options> <sourcefiles> etc. The other thing you have to write is gradle followed by an enter. Now you should have printed out your version of Gradle and a few other lines. If either or both of those things don’t work you haven’t installed Gradle or the Java JDK correctly. It is very likely that you have the Path variable wrong, but if that isn’t it you should remove both, redownload and reinstall.
In the next tutorial I will show you how to set up the development environment.