Sorry, I've misunderstood your initial question. What you can probably do is setup a simple gradle build that depends on the artifact you want to publish but doesn't compile anything, aggregate all the dependencies to a certain folder (perhaps using something similar to this<http://docs.codehaus.org/display/GRADLE/Cookbook#Cookbook-GatheringalldependencieslibrariesJARsinonefolder>) and finally deploy them to the desired location.
On Tue, May 22, 2012 at 9:47 PM, Maury Hammel <[email protected]>wrote: > Noam: > > Yes, we're using Gradle's dependency management, at least I believe we are > :). We have the necessary 'repositories' and 'dependencies' entries in our > build.gradle scripts to automatically handle things during > compilation/building. When the artifacts are published to the Artifactory > repository, included are the .pom and ivy.xml files that contain the > dependencies. > > I'm inferring from your reply that we should just have a gradle script > that will download the artifact and it's dependencies from the Artifactory > repository so that we can deploy the files in a production environment. > I've gone over the documentation (and googled, etc.) and everything I've > found talks about the build process and getting artifacts into the > repository, but nothing about extracting the artifacts and dependent > objects from the repository for the purposes of application deployment. > > When you're building things, you specify the exact dependencies in the > build script, which makes sense. When you publish to the repository, > Gradle includes the pom/ivy.xml which has the details about those > dependencies. I thought then when you wanted to deploy the artifacts into > a running system, the pom/ivy.xml in the repository would allow you to get > everything you needed. We would build a script (of some sort) that would > query the repository (rather than having everything hard-coded in a script) > , extract the artifacts and the dependent artifacts, and put then them > where we needed them. > > I see how we could create a build.gradle script that referenced the > artifact we created in the Artifactory repository, but I'm not sure how we > would use that for deploying the application. Gradle downloads everything > into it's own special cache, and I haven't found anything that would allow > you to determine, programatically, where that is, so it can be copied to > the directory where it is needed. > > Am I just not understanding how things are supposed to work? > > > Thanks, Maury > > > On 20/05/2012 12:00 AM, Noam Y. Tenne wrote: > > So don't you use Gradle's dependency management? > > On Thu, May 17, 2012 at 6:07 PM, Maury Hammel <[email protected]>wrote: > >> Noam: >> >> We're using Gradle. >> >> >> Maury >> >> >> On 17/05/2012 1:19 AM, Noam Y. Tenne wrote: >> >> Which build tool are you using? >> >> On Wed, May 16, 2012 at 7:31 PM, Maury Hammel >> <[email protected]>wrote: >> >>> Hello: >>> >>> We currently just getting started with the whole repository/continuous >>> integration process so we're still trying to get our heads around things. >>> >>> I currently have a Bamboo plan that extracts our source code, compiles >>> it and publishes (via the Bamboo Artifactory plugin) the artifacts to >>> the Artifactory repository. So far, so good. Now we would like to >>> automate the extraction of the artifacts, plus any dependencies (e.g. >>> third-party jars like log4j, jdbc, etc.) from the repository. I've been >>> searching both Artifactory and Bamboo but have not been able to find >>> anything that points me in the right direction. >>> >>> Essentially, I would like to do what you can do from the Build Browser; >>> i.e. Build Browser -> Select build -> Save to Search Results -> Search >>> Results -> Export, but in an automated/scripted fashion. I thought >>> there might be something in the REST API, but I don't seem to be able to >>> find it. >>> >>> I'm assuming that this is something just about everyone has to do at >>> some point, in order to put an artifact into use on server, so I must be >>> be missing something somewhere. Would someone be able to point me in >>> the right direction? >>> >>> >>> Thanks in advance, Maury >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Artifactory-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/artifactory-users >>> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> >> >> >> _______________________________________________ >> Artifactory-users mailing >> [email protected]https://lists.sourceforge.net/lists/listinfo/artifactory-users >> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Artifactory-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/artifactory-users >> >> > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Artifactory-users mailing > [email protected]https://lists.sourceforge.net/lists/listinfo/artifactory-users > > > -- > ____________________________________________ > Maury HammelB.Sc. Advanced > Senior Technical Associate > cfactor Works Inc. > 250 - 2nd Ave. S. > Saskatoon, SK S7K 1K9 > t: 877.655.5798 Ext. 107 > p: 306.652.5798 Ext. 107 > [email protected] > [image: cfactor Works Inc.] > www.cfactorworks.com > [image: Follow Our Blog] <http://blog.cfactorworks.com/> [image: Follow > us on LinkedIn] <http://www.linkedin.com/company/239869> [image: Follow > @cfactorworks on Twitter] <https://twitter.com/#%21/cfactorworks> [image: > Follow Us on Pinterest] <http://pinterest.com/cfactorworks/> > This e-mail and any accompanying documents are subject to copyright and > may contain information that is privileged or confidential. Any use, > disclosure, retention, copying or action taken in reliance on the contents > of this email and any accompanying documents by anyone other than an > intended recipient is strictly prohibited. If you are not an intended > recipient, please delete the e-mail and any attachments and notify us > immediately. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Artifactory-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/artifactory-users > >
<<hgeefhdc.png>>
<<blog.png>>
<<linkedin-icon.png>>
<<pinterest.png>>
<<bg_logo.gif>>
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
