I think this might be because "compile" is now transitive by default and runtime extends from compile, so will pick up the dependencies from there.

On 12/08/2010 17:44, Walter Di Carlo wrote:
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