I know I can fat jar all my compile dependencies by doing:
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
However, what I would like to do is to fat jar a single compile dependency, instead of them all. I have:
dependencies {
compile files("myCode-1.0.jar")
... lots more dependencies
}
jar {
// what should be here to fat jar only myCode-1.0.jar?
// of course, I also want the classes defined in my project to be included in the jar
// but i don't want my other dependencies
}