gradle-dependency-lock-plugin
gradle-dependency-lock-plugin copied to clipboard
Add the option to ignore version locks on the transitive dependencies of an overridden dependency.
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.