Thank you very much!

This is working just fine, until I decide to put the jar section in
another script that i am calling with "apply from: otherScript.gradle"
because a few projects needs this jar task. In that case, the class
path is null... :(


2011/1/17 TheKaptain <[email protected]>:
>
> 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
>
>
>

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

    http://xircles.codehaus.org/manage_email


Reply via email to