Jump to content

Recommended Posts

Posted

I was wondering whether it is possible to setup custom source sets apart from the default (main, test, api). For example, if I was creating a mod which was made of multiple different modules (like Buildcraft and their modules), could I have each module on a different source set but then when I run the game when testing, it would load all of the modules together?

 

Thanks in advance for any replies, hopefully this makes sense :D. 

If this is not possible, if anyone could advise any alternatives other than creating new mod dev environments.

Thanks

Posted

Yea I have done something similar to this using git modules. Open blocks does this as well you can take a look on their Github.

Set up the git module so the sub project is in the main projects root directory and then add the following to the corresponding files.

 

Main build.gradle 

dependencies {
compile project("Sub-Project-Name")
}

Main settings.gralde

rootProject.name = "Project-Name"
include ":Sub-Project-Name"

Sub Project settings.gradle

dependencies {
rootProject.name = "Sub-Project-Name"
}

 

Let me know if you have any more questions.

  • Thanks 1

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.