I am building a command line application. My application depends on jdom-1.1.jar. However from some 3rd party library there is a dependency on jdom-1.0.jar (I dunno from where). When I run ./gradlew distZip I get both JARs in my lib directory (Gradle 2.7). How can I exclude jdom-1.0.jar? I have tried
distributions {
main {
baseName = 'mail-director'
contents {
from {'src/dist'}
}
}
applicationDistribution.exclude('**/jdom-1.0.jar')
}