fabric-loom icon indicating copy to clipboard operation
fabric-loom copied to clipboard

Dependencies from non-mod configurations aren't included in the POM

Open Juuxel opened this issue 4 years ago • 3 comments

Normally you'd use from components.java to include deps from api/implementation, but that doesn't work with Loom additions like the remapped/dev jars.

Juuxel avatar Apr 30 '20 22:04 Juuxel

This was done specifically to stop mc deps leaking in. Among other reasons. Gradle should allow you to specify what you want in the pom

modmuss50 avatar May 06 '20 01:05 modmuss50

There's no clean way to do it, though, since the standard way of from components.java just causes an error. Some mods (like mine) want to have non-mod deps that are still exposed, and mod* configurations just put them through pointless remapping.

Juuxel avatar May 06 '20 11:05 Juuxel

I think the "clean" way here is to manually write the xml using pom.withXml { .. }

natanfudge avatar May 06 '20 11:05 natanfudge

Fixed by #460.

Juuxel avatar Aug 28 '22 11:08 Juuxel