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

DependencyWriter seems to examine unresolved configurations #440

Open
yevhenii-nadtochii opened this issue Nov 8, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@yevhenii-nadtochii
Copy link
Contributor

We see the following warning when building text module:

The project uses several versions of `io.spine.validation:spine-validation-java-runtime` dependency.
module: text, configuration: implementation, version: 2.0.0-SNAPSHOT.61
module: text, configuration: implementation, version: 2.0.0-SNAPSHOT.40

The mentioned library has two versions in the same module and configuration.

In the build file, this library is forced to prevent a conflict:

    all {
        resolutionStrategy {
            force(
                spine.base,
                spine.validation.runtime, // This one.
            )
        }
    }

And build scan confirms it:

image

But DependencyWriter still sees two versions and uses deduplication to prevent several versions of a single library in POM. In this case, it shouldn't have happened. DependencyWriter is meant to examine already resolved configurations, and only then deduplicate, if needed.

@yevhenii-nadtochii yevhenii-nadtochii added the bug Something isn't working label Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant