That's OK, no rush and enjoy your holidays!. I produce fat jar using the merging feature already. Though, I thought there was a simpler way and you showed it at Jazoon (but I might be wrong:).
Essentially, I use mergeGroup feature it is pretty cool as it allows the build to be more maintainable - I can use wildcards and merge several jars. The thing I'm missing a bit is excluding files when doing mergeGroup. The reason is that my jars all contain some readme.txt file inside. When I merge all jars then I have 5 readme.txt in the fat jar. I can work around it by using 'merge' feature but then I have to specify full names of the jar files which is something I don't like. OTOH instead of mergeGroup I could use merge feature, so long it supports wildcards for file selection. I think I'm missing the concept of 'fat jar' in Gradle. Many times when I worked on a library/console app I needed to stick all dependencies in single jar. It would be great if java plugin added extra task that could produce fat jar (or mavenized: jar-with-dependencies) out of the box. Thanks! Szczepan On Wed, Jul 8, 2009 at 5:43 PM, <m...@dockter.biz> wrote: > Hi Szczepan, > > we are all on holidays. This is the only time I have access to the > Internet. I'm back in my office on Friday. In the Java plugin chapter, > section 'Adding archives', there is a subsection called 'merging'. If > this does help, I will be able to provide more information on Friday. > > Cheers, > > - Hans > > On Mon, 06 Jul 2009 14:53 +0200, "szczepiq" <szcze...@gmail.com> wrote: >> Hi, >> >> It's going to be a quickie for you guys and to my excuse I did >> searched in manual for a while :) >> >> What's the easiest way to produce 'fat' jar, e.g. jar that has all the >> dependencies inlined? I remember Hans showed it at Jazoon but I forgot >> :) >> >> Thanks! >> Szczepan Faber >> >> --------------------------------------------------------------------- >> 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 > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email