When we use the Gradle Application plugin to create runnable jar for my project the distZip task adds all the jars that are not relevant to the lib folder.
Is there any way that I can exclude the jars that are not required in the distribution zip file that is created by Gradle.
In order to exclude the transitive dependency jars in the dist added.