Skip to content

Add the option to ignore version locks on the transitive dependencies of an overridden dependency. #83

@drobertduke

Description

@drobertduke

Here's the scenario:

A project has a direct dependency and a transitive dependency. They are both locked to a specific version in the project's lock file. I run gradle with dependencyLock.override=directDependency:[new version].

What currently happens:

The direct dependency version is overridden but the transitive dependency version stays locked, regardless of what version the new direct dependency requests.

What I want an option for:

The direct dependency version is overridden and the lock on the transitive dependency is ignored, so the transitive version will be resolved properly in relation to the new direct dependency.

My proposal is that we add an alternative to the 'override' option like 'overrideAndIgnoreTransitiveLocks'. Another option would be that when the existing 'override' parameter is used with includeTransitives=true , then we ignore the transitive locks. But that seems like overloading includeTransitives.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions