How do I exclude specific transitive dependencies of ... - Gradle Forums
https://discuss.gradle.org/t/how-do-i-exclude-specific-transitive-dependencies-of-something-i-depend-on/17991
WebJun 9, 2016 · In plain Gradle, what you are looking for can be achieved as: dependencies { compile('com.example.m:m:1.0') { exclude group: 'org.unwanted', module: 'x . } compile 'com.example.l:1.0' } This would exclude the module X from the dependencies of M, but will still bring it if you depend on L.
DA: 81 PA: 71 MOZ Rank: 3