Jump to content

[Tut] Gradle setup: How to setup gradle for Eclipse


Blockout22

Recommended Posts

okay first lets create 2 folders, one for gradle setup & one for your development environment

 

 

 

20jiamp.png

 

 

 

download forge src & extract the contents into the "gradle setup" folder you just created then create a new .bat file & edit the text inside so it says "gradlew.bat eclipse" save it then run the .bat you just created

 

next open up eclipse and change the location to the "development environment" folder you just created

 

after its all loaded click on "help" & eclipse market place, & search for "gradle intergration" & install (you will have to restart eclipse)

 

 

 

1zcmiqu.png

 

 

 

click on file & then import & click on gradle then gradle project

 

 

 

raaohh.png

 

rwnku0.png

 

 

 

browse to your "grade setup" folder & then click build model

 

 

 

1zv607q.png

 

 

 

click on the project that pops up then click finish (it will take a few minutes to setup)

 

 

 

5oi7i0.png

 

 

 

now your gradle files should all be setup

 

 

 

oidpj9.png

 

 

 

 

now go to "run configurations" & right click on "java application" & create a one called "start_server"

 

click on the search button & select "ServerLauncherWrapper" & click ok your server should launch successfully

 

now in "run configurations" again create another "java application" and just call it "start_client"

 

click on the search button & select "Launch" & click ok, next click on the arguments tab ...

 

in the Program arguments put the following text "--version 1.6 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker"

 

in the VM arguments put the following text "-Xincgc -Xmx512M -Xms512M -Dfml.ignoreInvalidMinecraftCertificates=true" click apply

 

SUCCESS you should have forge gradle setup :D

Link to comment
Share on other sites

  • 4 weeks later...

Stop making it complciated:

 

this was posted ages ago & its not complicated, its people them selfs who make it complicated, I did previously watch your video tho & noticed you dont need gradle but having gradle lets you do the commands in eclipse meaning you dont have to touch the forge src download

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.