Jump to content

Multi Projest Workspace


ApexModder

Recommended Posts

I am developing multiple mods at the same time, some of which depend each other
How could i set up a good workspace that would manage and handle all these projects for me?

I have seen various multiproject workspaces around but they all are mainly around 1 large project with sections / api / common / forge split into sub projects.
Im trying to have 1 workspace with subprojects where each sub project is its own mod with its own set of dependencies (and maybe run configs to be able to test without loading all mods from workspace at once)

I am currently using some janky soulution which has the multi project setup kinda but its rly just 1 massive project with hacks around source sets, this is fine until i want mods to have depdnencies that other mods can not see
Like a new mod ive been working on which adds biomes, mobs etc to the nether, for this i need terrablender but i do not want all my mods to compile against terrablender only this 1 mod that requires it
My current solution since its 1 massive project, i add terrablender all mods see it and compile against it, which i do not want

The mod tree would be something similar to this

Workspace/
├─ ModA (Standalone)/
├─ ModB/
├─ ModC (Requires ModB)/
├─ ModD (Requires ModB & ModC)/
├─ ModE (Imports some external Dependency)/
├─ Forge (Requires all Mods & external Dependencies)/

Each sub directy is its own mod, with its own set of depdenencies, run configurations and could depend on other mods from the workspace
The Forge directory should be 1 subproject which requires all the mods and external depdendcies, as quick easy way to run client / server with all mods loaded at once
These mods / projects should also be able to load and run fine when loaded outside of the multi project environment, as there are multiple people working on some of these mods which do not work in multi project environments and I use GitHub Actions to compile & release my mods, which requires the mod to load outside of a multiproject workspace.
What would be the best way to go about setting up a project structure similar to this?

 

TL;DR: Looking to setup workspace for with all of my mods contained within it, how would i go about doing this? some mods depended on others while others use external depdendencies.

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.



×
×
  • Create New...

Important Information

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