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.
See example project: https://github.com/Juuxel/duplicate-mods
gradlew classes
, Loom will remap the mods.gradle/loom-cache/remapped_mods
, only one of the jars will have the classes A, B even though both inputs have themThis 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.