Implement a fallback when including non-NeoGradle source sets in a run #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement a fallback when including source sets that do not have NeoGradle applied so they get merged with the sources from the project in which the runs are defined.
This fixes issues with the multi-loader setups (i.e. JEIs) where a Common project is managed by sponges VanillaGradle, while the NeoForge projects are managed by NeoGradle.
In this case, the mod author just wants to have all their projects merged into a single mod at runtime:
With the changes in this PR, this becomes possible by specifying a mod-id on the NeoGradle and NeoGradleApi projects and including the source-sets of Common and CommonApi as usual, since these two projects will then inherit the mod id
jei
.