Task to build 'all' jar?

Is there a task that builds an ‘all’ jar (ie a jar file that contains all the dependencies) so that one doesn’t have to supply a classpath in order to run ‘main’?

You can use the ‘application’ plugin, the (third-party) ‘one-jar’ plugin, or declare your own ‘Jar’ task.