Hello Tomek,

On Tuesday 23 March 2010 09:32:18, Tomek Kaczanowski wrote:
> not sure if it answers your question, but have you seen this:
> http://docs.codehaus.org/display/GRADLE/Cookbook#Cookbook-Gatheringalldepen
>dencieslibrariesJARsinonefolder

Thanks a lot for that link!

I stumbled serveral times over the cookbook yet, but always with certain 
problems in mind, so my swapspace got clobbered that I did not remember the 
rest of the cookbook.

... anyway:
the code snippet does not work at all for me.
Don't know, whether it works with gradle 0.8 - I'm using daily builds from git
and the sample copied the artifact of my project only.

May be - I did not find the right words for my question. What I like to do is 
copy those artifacts from other projects, which I use only - not my own jars.
For the latter I extended the upload task:

allprojects {
   uploadArchives.doLast {
      targetDir = new File(file(rootProject.buildDir).absolutePath 
+ '/install/', targetSubDir)
      targetDir.mkdirs()
      copy {
         from artifacts
         into targetDir   
         exclude 'JRC-Framework**'
         exclude 'VdrAssistant**'
      }
   }
}

Then I have all my artifacts in one directory, where I can grab it from other 
projects too.

My question was related to i.e. commons_logging.jar, glazedlists_java15.jar or 
the like.

I tried to access and iterate over configurations, but I did not succeed.

The external dependencies are defined in a separate file (externals.gradle) 
which gets included (applied) into the top level build.gradle and looks like:

libraries = [
   commons_logging      : 'commons-logging:commons-logging:1....@jar',
 ...
]

In the build.gradle of any subproject I use 

dependencies {
   compile libraries.commons_logging,
                ...
}

What I'd like to do is iterate over the dependencies of all subprojects and 
merge that dependencies into a unique list - and use that list as a source to 
a copy task (or somewhat similar).

So if anybody could shine me a light ...

kind regards

Geronimo

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

    http://xircles.codehaus.org/manage_email


Reply via email to