this syntax may not yet be presented, but I ask you to avoid redundant code. Right now I rule out such jars
compile ('com.mygroup:myJar:0.1.1-M1-SNAPSHOT+') { exclude group: 'org.apache.xmlgraphics' exclude group:'org.apache.avalon.framework' exclude group:'net.engio' exclude group: 'com.google.guava' }
How can I exclude several groups / modules in one line of code, for example, this syntax
compile ('com.mygroup:myJar:0.1.1-M1-SNAPSHOT+'){ exclude group: ['org.apache.xmlgraphics', 'org.apache.avalon.framework', 'net.engio', 'com.google.guava'] }
Or there is another short code that does the same.
Thanks.
source share