You can also make a local nexus installation. It's quite straightforward (a couple of hours to grab all the details).
On Wed, Feb 24, 2010 at 12:20 AM, Colin Yates <[email protected]> wrote: > Thanks Paul. I hadn't realised you could just do an install to put it into > the maven cache. I will try that tomorrow after I get a few hours shut eye. > > On 23 Feb 2010, at 22:24, Paul Speed wrote: > >> >> >> Colin Yates wrote: >>> HI Paul, and thanks for the speedy reply (no pun intended ;)) >> >> ;) >> >>>> // This requires gradle 0.9... >>>> artifacts { >>>> archives sourcesJar >>>> archives javadocJar >>>> } >>> Do you know the equivalent for 0.8? >> >> That's how you'd do it in 0.8, too but it's busted. >> >>>> I'm not too familiar with maven in this regard. What is missing from the >>>> pom in this case? >>> Not sure, hopefully nothing - I haven't yet managed to get it to produce >>> the source JAR. >> >> Ok, no one has yet complained about my -sources and -javadocs artifacts but >> they haven't gotten much use either. So I was just wondering. >> >>>>> - for publishing multiple artifacts (i.e. for the JAR and WAR file from >>>>> the WAR projects) I need to define a filter - has anyone got a simple >>>>> example of this? >>>> I'm not sure what exactly you mean here. Can you give an example? >>> Yep, sure. I want my war project to produce a .war file, but also a .jar >>> file with all the server side code (domain, services etc.). According to >>> http://gradle.org/0.8/docs/userguide/userguide_single.html#war_plugin I >>> simply need 'jar.enabled=true'. However, my question regards Example 29.7 >>> (http://gradle.org/0.8/docs/userguide/userguide_single.html#uploading_to_maven_repositories) >>> which states I need to add a number of filters for each artefact I want >>> uploaded. Maybe I have missed the point, but how (other than using maven) >>> do you define inter-project dependencies when they are not a multi-project >>> build? >> >> Yeah... I actually use the maven dependencies for this. So I don't use >> maven, just its .m2 cache. :) I 'gradle install' the common projects and >> then just depend on them like I would any other external dependency. >> >>> One other thing - how do people 'get into' gradle? I have read the manual >>> a number of times and googled but I just can't seem to connect the dots.... >> >> It's tough. I struggle often as I'm still learning groovy, too. And >> actually, it's not so much that I have trouble doing stuff in gradle I just >> always feel like I'm doing it the "hard way" because I don't know any better. >> >> I'm not very far along, either... and I wish I knew how I got where I am >> because I'd write it down and post it somewhere. ;) >> >> -Paul >> >> >> --------------------------------------------------------------------- >> 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
