Provides means to substitute a different dependency in place of a module dependency.
Type | Name and description |
---|---|
void |
useVersion(String version) Allows to override the version when the dependency getRequested() is resolved. |
Methods inherited from class | Name |
---|---|
interface DependencySubstitution |
getRequested, useTarget |
Allows to override the version when the dependency getRequested() is resolved. Can be used to select a version that is different than requested. Forcing modules via ResolutionStrategy.force uses this capability.
If you need to change not only the version but also group or name please use the useTarget(Object) method.
version
- to use when resolving this dependency, cannot be null.
It is valid to configure the same version as requested.