I would like my Gradle build script to add the complete Classpath to the manifest file contained in JAR file created after the build.
Example:
Manife
Found a solution on Gradle's forum:
jar { manifest { attributes( "Class-Path": configurations.compile.collect { it.getName() }.join(' ')) } }
Source: Manifest with Classpath in Jar Task for Subprojects