On Wed, 19 Dec 2018 at 22:33, Paul Moore <p.f.mo...@gmail.com> wrote:
> Something simple like > > task customFatJar(type: Jar) { > dependsOn copyDeps > baseName = 'all-in-one-jar' > from "dest/lib" > } > > gives me an "all-in-one-jar.jar" that contains the dependency jars > directly included, rather than being unpacked. So there's more I need > to do here... Actually, I found the following on the web, which seems to work: task customFatJar(type: Jar) { dependsOn copyDeps baseName = 'all-in-one-jar' from { configurations.deploy.collect { it.isDirectory() ? it : zipTree(it) } } } I'm not at all sure *why* it works, but it does :-) Paul