So i have included a local jar as a dependency using following command in gradle -
"compile files("${PathToJar}/name.jar")
Now i want to exclude some module from above jar just like we do with normal dependencies exclusion
compile('com.a.b:' + version) {
exclude group: 'com.google.inject', module: 'guice_servlet'
exclude group: 'com.google.inject', module: 'guice'
exclude group: 'io.dropwizard'
exclude group: 'org.slf4j'
exclude group: 'log4j'
}
I googled a lot but could not find a proper command.