SpongePowered / VanillaGradle

A toolchain for Minecraft: Java Edition that builds a workspace to interact with the game using the official mappings provided to the public by Mojang Studios.
MIT License
89 stars 18 forks source link

Make sure decompile task only ever decompiles once #31

Closed zml2008 closed 3 years ago

zml2008 commented 3 years ago

When a decompile task is run in a multi-project build in the same Gradle invocation that prepares the deobfuscated Minecraft jar, the decompile operation can be initiated multiple times, once for each project with VanillaGradle.

Because the MC artifact is produced in the same build, the cached result is considered out-of-date, so decompile will always produce a new artifact.

This probably needs some work in the up-to-date checking, or in how produceAssociatedArtifactsSync de-duplicates artifact requests.