Hi, 

I have a lot of JAR files in lib directories which my projects depend on for
their compile tasks.  I have set my compile dependancies like this:

dependencies {
        compile fileTree(dir: "$rootDir/../uwm/lib", include: '*.jar') 
}

This works fine, but I wondered if I should be using a repository for my jar
files with a flatDir instead of the compile dependancy (I'm not using Ivy or
Maven) e.g.

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

What is the difference between these two approaches, I didn't really
understand from the documentation.  Is the repository approach the way to
manage different jar versions, so you can specify a dependancy on a
particular jar and version?

Thanks, 


-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/repositories-flatDir-or-fileTree-in-compile-dependancy-tp3260072p3260072.html
Sent from the gradle-user mailing list archive at Nabble.com.

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

    http://xircles.codehaus.org/manage_email


Reply via email to