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

Remapping deletes duplicate classes from jars

Open Juuxel opened this issue 1 year ago • 0 comments

See example project: https://github.com/Juuxel/duplicate-mods

  • There are two mod dependencies, a.jar and b.jar
    • a.jar has classes A, B
    • b.jar has classes A, B, C, D
  • When you build the project with gradlew classes, Loom will remap the mods
  • If you take a look in .gradle/loom-cache/remapped_mods, only one of the jars will have the classes A, B even though both inputs have them

This is a simplified test case from a real-life mod setup where a crossplatform mod shadows some of its modules but still depends on the other modules in its POM.

Juuxel avatar Oct 12 '22 22:10 Juuxel