Skip to content

DependencyWriter seems to examine unresolved configurations #440

@yevhenii-nadtochii

Description

@yevhenii-nadtochii

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions