Skip to content

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
@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