On 9/08/10 9:03 AM, Steve Appling wrote:
Any clever ideas for building a fat jar and still specifying your own manifest. 
I was trying something like the following, but the manifests from the other 
jars overwrite mine.

jar {
     from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
     manifest {
       attributes('Main-Class': 'com.myproject.Main')
     }
}

I've fixed this in trunk, so the above should work as is.

A workaround is to use zipTree(it).matching { exclude 'META-INF/MANIFEST.MF' } instead of zipTree(it)


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz


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

   http://xircles.codehaus.org/manage_email


Reply via email to