SpongePowered / SpongeGradle

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

generateMetadata doesn't work in multi-moduled project #20

Closed GlassSpirit closed 4 years ago

GlassSpirit commented 5 years ago

When gradle project is multi-moduled, generateMetadata only takes info from build.gradle file and ignores @Plugin annotation and mcmod.info inside resources

stephan-gh commented 5 years ago

What does "multi-moduled" mean? Do you have an example project?

If you are talking about subprojects, then SpongeGradle will always apply to the project it is applied on. So if you have plugins in subprojects, you need to apply SpongeGradle to the subprojects.

GlassSpirit commented 5 years ago

Yes, subprojects. You can look at this repo. It has 3 subprojects, sponge plugin is applied to Plugin, but generated mcmod.info in build jar only contains info from build.gradle file of Plugin.

gabizou commented 4 years ago

This is supported with how it's been set up as a bundle meta.