Jump to content

[1.12.2] Proper MultiProject setup?


ApexModder

Recommended Posts

Is there a tutorial out there to setup a proper multi project work space with intelij?

I know how to setup a single project work space but when it comes to dev'ing multiple mods ive had issues where i need to run setDecomp per mod or where i have root folder with build gradle and mods with sub gradle files but that messes up dependencies and i have to go in and add forge src and GradleStart manually

 

every time i have tried to create multi project i have 1 or all of these issues had to have all mods depend on 1 core mod, external mods don't load, external mods load but cant access api, crashes in cmd saying unknown project, intelij cant pick up other local mod assets etc just cant seem to get multi project to work with forge gradle

 

basically is there a tutorial out there to setup my build gradle file properly to work with multiple mods?

 

trying to get a setup something similar to this, doesn't have to be exact but would like each mod to be able to depend on each other interchangeably and any external mod

Root[1.12.2]/
	build.gradle
	settings.gradle
	
	build/
		<output_of_classes>
	
	run/
		<mc_run_dir>

	Mod A/
		build.gradle
		src
		depends on nothing
	
	Mod B/
		build.gradle
		src
		depends on Mod A
	
	Mod C/
		build.gradle
		src
		depends on Mod B and not Mod A
		external mods JEI, Tinkers Construct
	
	Mod D/
		build.gradle
		src
		depends on nothing
		external mods JEI, Thermal Expansion

 

Link to comment
Share on other sites

Does InteliJ have an "import project from external location" thing? If so, set up your projects as normal and use that; navigate to the folder you'd set up your workspace in and import those projects and it works. In Eclipse at least

Link to comment
Share on other sites

9 hours ago, Leppa said:

Does InteliJ have an "import project from external location" thing? If so, set up your projects as normal and use that; navigate to the folder you'd set up your workspace in and import those projects and it works. In Eclipse at least

see i tried that but idea had issues with modules and not picking up correct src folders had to go in and manually specify dependencies and src folders which is what i thought gradle is meant to do for me

Link to comment
Share on other sites

BUMP

Made a simple video explain the issues im having, dependencies for mods that require my core mod never actualy get the api module from my core mod, want to add another mod later dow nthe line gotta reset up my entire workspace and dependencies

 

 

Link to comment
Share on other sites

  • 1 month later...

I was able to get a Multiple Mod setup going with Access Transformers to work, all you need is the main build.gradle file. All other files are actually copied from your video. This setup also adds the dependencies, I haven't gotten the '_api' deps automatically yet, I will post back when I do.
 

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.