Roger Studner wrote:
Can't seem to find much doc on this (probably in the 200 pages of docs.. which are great docs.. I just can't find it hah)

I've successfully used maven repo's with my gradle builds.

Was curious, for a flatDir repository, is it looking for a local filesystem that is built up like maven (pom's etc)..

or what I see all the examples doing this:

repositories {
    flatDir name: 'localRepository', dirs: 'lib'
}

Is it just looking for jar files in a folder called lib?


Pretty much. For each dependency that you declare in the build script, Gradle will look for a corresponding file in the 'lib' directory. For example, for a dependency on 'junit:junit:4.7', Gradle would look for lib/junit-4.7.jar or lib/junit.jar. It assumes there are no transitive dependencies.

I am guessing the maven/pom route, only because how could it then resolve spring 2.5.6 "intelligently" from a lib folder that just luckily had exactly the right jars to support the group/name/version for spring.


They can be used along with client modules, where the transitive dependency info is provided in the build script: http://gradle.org/0.8/docs/userguide/dependency_management.html#sub:client_module_dependencies


--
Adam Murdoch
Gradle Developer
http://www.gradle.org


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

   http://xircles.codehaus.org/manage_email


Reply via email to