Hello Adam,

thanks for your reply.

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? Thanks in advance of all your insight.


It should work. In Gradle 0.6 you won't need to add the artifact pattern.

Gradle 0.5.2 shows the following error:

        ==== deps: tried

          -- artifact #[artifact];![artifact].jar:

          /Workspaces/foo/deps/eclipse-3.0/[artifact].jar

          /Workspaces/foo/deps/eclipse-3.0/[artifact].jar

                ::::::::::::::::::::::::::::::::::::::::::::::

                ::          UNRESOLVED DEPENDENCIES         ::

                ::::::::::::::::::::::::::::::::::::::::::::::

                :: #[artifact];: not found

                ::::::::::::::::::::::::::::::::::::::::::::::



Build failed with an exception.



--
Cheers,
  Marco

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

   http://xircles.codehaus.org/manage_email


Reply via email to