Better use of gradle installDist

Hi,

Is there a way to minimize the number of jars packaged into ./build/install/$app/ by installDist . Yes, Gradle is very thorough, but a lot of those dependencies are never hit by the execution path, and specifying exclusions by hand is not really practical. Anyone experimented with this before?

Thanks.