This should do what you're looking for. 

dependencies {
    compile 'commons-lang:commons-lang:2.4'
}
jar {
    manifest {
        def manifestClasspath = configurations.runtime.collect {
it.getName() }.join(',')
        attributes 'Class-Path': manifestClasspath
    }
}
task('dist', type: Zip) {
    dependsOn 'jar'
    from jar.archivePath
    from configurations.runtime
}
-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/manifest-and-classpath-tp3343782p3343868.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to