SpongePowered / SpongeGradle

Handy gradle utilities for the various gradle projects of SpongePowered
MIT License
21 stars 16 forks source link

Fix missing metadata #15

Closed phase closed 6 years ago

phase commented 6 years ago

The compileJava task needs to be run for the annotation processor to output the mcmod.info. This sets it to always be out of date.

felixoi commented 6 years ago

Wouldn't this endup in a complete recompiling every time even if no file has been changed?

stephan-gh commented 6 years ago

Thanks for the PR! :)

I've fixed this a bit differently to avoid re-running compileJava all the time. Now it will only run if generateMetadata actually produced a different metadata file.