We may set a dependency with alternative target configuration:
runtime group: ‘org.somegroup’, name: ‘somedependency’, version: ‘1.0’, configuration: ‘someConfiguration’
Is there any way to change someConfiguration to something different ?
I’ve tried different ways of dependency substitution (or rejecting) using resolutionStrategy, but it does not expose target configuration (someConfiguration) information - we just have access to the group, module and version.
P.S. Real life example:
I have multiple libraries that define
I don’t want to write tons of exclude expression, but instead I want to replace this dependency in a single place with