Affects Version/s: 2.0.3, 2.0.4
Fix Version/s: None
Component/s: Build System
Excluding dependency A from a plugin works fine if the plugin has a direct dependency to A:
'javax.mail:mail:1.4.3' is successfully excluded.
But if A has a dependency to B, it does not always work to exclude B:
Plugin ':mail:1.0' has a compile dependency to 'javax.mail:mail:1.4.3', which have a dependency to 'javax.activation:activation:1.1'
Here I would expect 'javax.activation:activation:1.1' to be excluded, but it's not.
When changing plugin scope til 'compile', it works though:
Looks like transitive dependencies are only excluded if scope matches plugins scope, but for direct dependencies scope doesn't matter.