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

Avoid resolving configurations that are deprecated for resolving #129

Merged
merged 6 commits into from
Apr 6, 2024

Conversation

bigdaz
Copy link
Member

@bigdaz bigdaz commented Apr 6, 2024

Certain configurations can be reported as "Deprecated for resolving", which is detectable via the DeprecatableConfiguration.canSafelyBeResolved internal API.

Resolving these configurations during dependency graph generationg can be problematic, particularly in the case of strict Dependency Locking, since no lockfile is likely to be generated for these configurations.

With this PR, reflection is used to attempt to determine if a Configuration can be safely resolved, avoiding resolution of deprecated configurations.

Fixes #128

@bigdaz bigdaz merged commit 68164b8 into main Apr 6, 2024
30 checks passed
@bigdaz bigdaz deleted the dd/dependencyLocking branch April 6, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Locked and non-resolving configurations fail with an error in Gradle 7.x with a single project
1 participant