Hello Hans,

I want to replace the following

compile.unmanagedClasspath(findJars("$rootDir/deps")

with something like this

dependencies {
  commonLib = new File("$rootDir/deps")
  addFlatDirResolver('deps', commonLib)
      .addArtifactPattern(commonLib.path+'/[artifact].[ext]')
  compile ':[artifact]::[type]'
}

Is this possible?

It should be possible. But Gradle doesn't allow this at the moment. In 0.5.3 (probably released next week) we will allow this. But all in all this is not a very nice way of solving your use case.

Thanks much for clarifying the present situation. I agree that the approach shown above is probably not the sanest one.


As Adam has pointed out, in 0.6 we will provide a more natural, convenient and powerful way to solve use cases like yours.

I'm looking forward to future versions. For now things are good enough to get me started. It will be interesting to see how Gradle scores performance-wise vs. Ant once I finished porting. Keep up the good work!

--
Cheers,
  Marco

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

   http://xircles.codehaus.org/manage_email


Reply via email to