Closed Sirttas closed 3 years ago
This already exists? See an example usage here. Note I have so many sourcesets I add them in a loop to reduce duplicates references to them in the extractRangeMap
, applyRangeMap
, and allExtraDirs
but they could be inlined
I did something similar in my mod: https://github.com/Sirttas/ElementalCraft/blob/f465a9e234f40c66ea89b4be60f7443b331a898b/build.gradle#L53
The goal of this pr is to make it easier to other people without having to read ForgeGradle sources or other mods gradle file.
Add the ability to use param:
UPDATE_SOURCESETS
(ex:-PUPDATE_SOURCESETS=main;api
) like SizableShrimp did for class names here: https://github.com/SizableShrimp/Forge-Class-Remapper