On 13/10/2011, at 9:29 PM, Howard Lewis Ship wrote: > On Thu, Oct 13, 2011 at 11:13 AM, Peter Niederwieser <pnied...@gmail.com> > wrote: >> >> Howard Lewis Ship wrote: >>> >>> Is there an easy way to add the uploadPublished task even without >>> making quickstart an java module? >>> >> >> The 'upload<ConfigurationName>' rule is added by the 'base' plugin, not the >> 'java' plugin. So 'apply plugin: "base"' should be enough. >> > > I have things working now ... I went with my solution of leaving > quickstart as a java module, consistent with the other modules of > Tapestry, but adding a dependency to copy and filter the Maven > archteype resources into the build/main/classes folder. Since the java > compilation does nothing, the end result is the jar contains just what > I want and is uploaded as expected. The only oddity is the very empty > -sources.jar that is uploaded as well.
The quickest and easiest way to solve this would be to change: artifacts { meta sourcesJar } to: artifacts { if (name != "quickstart") meta sourcesJar } However, personally I'd avoid such hardcoding and using a more general solution (but I don't have that at hand). What I'd try and do is add a hook to remove the sources jar at the end of evaluation if it's going to be empty. If you are interested in this let me know and I'll put it together. -- Luke Daley Principal Engineer, Gradleware http://gradleware.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email