-
-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discrepancy between JarJar metadata and included jars when using transitive dependencies #895
Comments
Hello can you upload the jar you are seei g this behavior with here as well please? |
I share file on google drive, and this is build.gradle. |
Have the same issue. Transitive dependencies are not added to metadata.json even if you specify jarJar dependency as transitive (they are added to jarJar directory just fine) |
@marchermans this might help you investigate the issue. So when JarJar is making a final jar, it includes all module artifacts.
However, when JarJar generates a ForgeGradle/src/userdev/java/net/minecraftforge/gradle/userdev/tasks/JarJar.java Line 223 in 94efd7e
I guess this is why the On the screenshot you can see that regardless how many module dependencies there are, JarJar only selects the first one and makes a |
Is there a fix/workaround for this (or in the works)? I wrote a |
@mahtaran we’ve had a discussion on Forge’s Discord channel and came to a conclusion that this behavior is intended and you have to specify transitive dependencies manually. However, Orion mentioned that FG6 will likely have a JarJar overhaul. So for now you have an option to track all transitives and pin them manually. |
All right, that does seem to work as an intermediary solution, thanks! I'll keep a look out for changes in FG6 then. |
Minecraft Version: 1.18.2
Forge Version: 40.1.76
Logs:
crash-report
log
Steps to Reproduce:
Description of issue:
Not all jars in the dependency tree in metadata.json, but all jars in META-INF/jarjar
The text was updated successfully, but these errors were encountered: