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

Prune deleted and unresolvable configurations from single lock file #13024

Open
ljacomet opened this issue May 5, 2020 · 1 comment
Open
Labels

Comments

@ljacomet
Copy link
Member

ljacomet commented May 5, 2020

The topic of non longer existing configurations has always been a discussion in the context of dependency locking.

Because of its potential for dynamic addition of configurations, Gradle cannot really automate cleaning up stale lock state for configurations that no longer exist in the build.
With one lockfile per configuration per project, manually deleting stale files was not such a big issue.

However with the single lockfile format, introduced in #11881, it becomes more complicated as manual edits of the file are not recommended.

So Gradle should provide a system for pruning stale configurations from that lock file.

@jjohannes jjohannes removed the @jvm label Mar 22, 2021
@big-guy big-guy changed the title Prune no longer existing configurations from single lock file Prune deleted and unresolvable configurations from single lock file Mar 11, 2023
@big-guy
Copy link
Member

big-guy commented Mar 11, 2023

Configurations that still exist but are no longer resolvable are also candidates for removal.

e.g., in 7.6, the default configuration was considered resolvable (but deprecated) and may have appeared in lock files.

In 8.0, the default configuration is no longer resolvable, but still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants