I am tring to setup a class-path attribute of a manifest without the
transitive dependencies. I just need the one specified in the project
build.gradle file

I have tried to build it with the following code

configurations {
        runtime {
                transitive = false
                exclude group: '*'
        }
}

jar.doFirst {
   def  cp  = ""
   task.project.configurations.runtime.resolve().flatten() { File file
-> file.name }.unique().each { aJar ->  cp = cp + " lib/$aJar" }

  task.project.manifest.mainAttributes('Class-Path': cp)
}

however it returns all dependencies including the transitive one.

Any suggestion is welcomed.

Bye

Walter

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

    http://xircles.codehaus.org/manage_email


Reply via email to