MinecraftForge / ForgeGradle

Minecraft mod development framework used by Forge and FML for the gradle build system
GNU Lesser General Public License v2.1
517 stars 444 forks source link

Add a param to update multiple source sets when updateMappings #793

Closed Sirttas closed 3 years ago

Sirttas commented 3 years ago

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

pupnewfster commented 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

Sirttas commented 3 years ago

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.