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

Public API for maven dependencies (currently only available on MavenPublicationInternal) #21345

Open
dsaff opened this issue Jul 25, 2022 · 0 comments
Labels
a:feature A new functionality in:publishing-plugins ivy-publish maven-publish

Comments

@dsaff
Copy link

dsaff commented Jul 25, 2022

Expected Behavior

Would like to be able to have access to methods like getApiDependencies, getRuntimeDependencies, etc, using a public API. Either new methods added to MavenPublication, or a new public subtype of MavenPublication

Current Behavior

These methods are only available by downcasting to MavenPublicationInternal.

Context

AndroidX tracks dependencies of all of our sublibraries in order to determine when a releasing library requires one of its dependencies to also be released in order to continue working. If we could get this information by crawling the maven dependencies through a public API at the time the publications are configured, that would be cleaner than alternatives (including downcasting to internal API or parsing the output files)

@dsaff dsaff added a:feature A new functionality to-triage labels Jul 25, 2022
@h0tk3y h0tk3y added the in:publishing-plugins ivy-publish maven-publish label Jul 26, 2022
@eskatos eskatos removed the to-triage label Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature A new functionality in:publishing-plugins ivy-publish maven-publish
Projects
None yet
Development

No branches or pull requests

3 participants