Added support for dependency inclusion on custom configurations

Sometimes, we may have custom configurations (e.g. when we have custom source sets), which may have separate dependencies. The user may want the resulting jar to include them as well.

This change adds support for such functionality. See here for a use case: https://github.com/gvsmirnov/jmh-gradle-sample