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

Only resolve resolvable configurations #721

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Only resolve resolvable configurations #721

merged 1 commit into from
Jan 18, 2023

Conversation

jvandort
Copy link
Contributor

Fixes: #718

Updates plugin to only resolve resolvable configurations. As a result, configurations like implementation are not resolved individually, but transitively via any resolvable configurations which extend it. To handle this change, Resolver.kt was updated throughout to use allDependencies and allDependencyConstraints in order to ensure the resolved/unresolved dependency comparisons with the latest versions include inherited dependencies from non-resolvable configurations which were previously being resolved individually.

Fixes: #718

Updates plugin to only resolve resolvable configurations. As a result, configurations like
implementation are not resolved individually, but transitively via any resolvable configurations
which extend it. To handle this change, Resolver.kt was updated throughout to use
allDependencies and allDependencyConstraints in order to ensure the resolved/unresolved dependency
comparisons with the latest versions include inherited dependencies from non-resolvable configurations
which were previously being resolved individually.
@ben-manes ben-manes merged commit 3274580 into ben-manes:master Jan 18, 2023
@ben-manes
Copy link
Owner

Thanks!

@jvandort jvandort deleted the jvandort/only-resolve-resolvable-configurations branch January 18, 2023 16:54
@ben-manes
Copy link
Owner

released, thanks @jvandort

tresat added a commit to tresat/gradle-versions-plugin that referenced this pull request Apr 17, 2023
This fixes a mistake in PR ben-manes#721 which used allDependencies here instead of dependencies, causing the inherited set always be empty, as a result of subtracting allDependencies from it.

This also prevents inherited kotlin deps from being included in the latest set, to avoid issues with having the original and modifies dependencies both added to the copy.
ben-manes pushed a commit that referenced this pull request Apr 17, 2023
This fixes a mistake in PR #721 which used allDependencies here instead of dependencies, causing the inherited set always be empty, as a result of subtracting allDependencies from it.

This also prevents inherited kotlin deps from being included in the latest set, to avoid issues with having the original and modifies dependencies both added to the copy.
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.

Configurations will not be able to change roles in 9.0
2 participants