MinecraftForge / ForgeGradle

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

Lazily create JarJar task on jarJar.enable() #885

Closed Jonathing closed 2 years ago

Jonathing commented 2 years ago

Successor to #884, fixes #883.

Hello again chat.

After some discussion in #gradle, we decided that an implementation revolved around lazily creating the jarJar task when jarJar.enable() is called would be the best solution, so here's my implementation of that. There's currently nothing in place that accounts for the end user in UserDev calling jarJar.disable(), but for now this should be fine.