Skip to content
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

Publication does not contain any dependencies in publication #227

Open
andriihorpenko opened this issue Jan 22, 2025 · 4 comments
Open

Publication does not contain any dependencies in publication #227

andriihorpenko opened this issue Jan 22, 2025 · 4 comments
Labels
bug Something isn't working legacy Related to the legacy plugin

Comments

@andriihorpenko
Copy link

Description

Since #198, MDG seems to not copy dependencies from the original config into the newly created reobfConfig.
I assume the issue lies where MDG replaces original config with the new config, which adds reobfuscated artifact only.

java.withVariantsFromConfiguration(config, ConfigurationVariantDetails::skip);
java.addVariantsFromConfiguration(reobfConfig, spec -> {});

Reproduction

Add any runtimeOnly dependency to both legacytest and testproject projects and publish them.

  • testproject will have said dependency listed in POM and Gradle Module Metadata
  • legacytest will not have it

Notes

See this Discord thread for more info.

@Matyrobbrt Matyrobbrt added bug Something isn't working legacy Related to the legacy plugin labels Jan 22, 2025
@Icosider
Copy link

As far as I know, MDG avoids any transitive dependencies, as they cause unpredictable bugs. Example: duplicate dependencies

@shartte
Copy link
Collaborator

shartte commented Jan 22, 2025 via email

@Icosider
Copy link

@shartte, the most interesting thing is that this problem is only in Legacy, as well as the problem associated with publishing multiple builds. Is MDG very strict and closed in such things for some reason, compared to other functionality, or are these just unaccounted-for likely test outcomes?

@shartte
Copy link
Collaborator

shartte commented Jan 22, 2025

@shartte, the most interesting thing is that this problem is only in Legacy, as well as the problem associated with publishing multiple builds. Is MDG very strict and closed in such things for some reason, compared to other functionality, or are these just unaccounted-for likely test outcomes?

That's not really interesting. MDG only has to mess with jar or publications because it has to replace the jar for reobfuscation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working legacy Related to the legacy plugin
Projects
None yet
Development

No branches or pull requests

4 participants