OrnitheMC / ploceus

Gradle plugin to extend Fabric/Quilt Loom functionality for Ornithe
Apache License 2.0
10 stars 1 forks source link

[Suggestion] Add ploceus version to mod jar manifest #1

Open thecatcore opened 8 months ago

thecatcore commented 8 months ago

Add the ploceus version to the mod jar manifest as a way to recognize the mod as built with Ornithe intermediaries. Or at least something that will differentiate/identify Ornithe mods.

It will come in handy the day we manage to get mods built with different intermediaries running together.

SpaceWalkerRS commented 8 months ago

That's a good idea. I was thinking about this and we'll probably want to add something to our intermediary jar manifest as well, and copy that into the mod jar manifest after building.

haven't yet looked into that side of it, but does Loom provide an API for adding to the mod's jar manifest, or should Ploceus just hook into Gradle for that?

thecatcore commented 8 months ago

Loom doesn't seems to provide an API for it, but you can hook into AbstractRemapJarTask doLast and modify the jar manifest at this moment. That's what I've done in legacy-looming.