runtime and compile dependency resolving

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

runtime and compile dependency resolving

Marko Bauhardt-3
Hi,
i have a question about dependency resolving.

if i resolve the deps of the configuration "runtime", then i get an  
empty array.
        def projectClassPath =  
project(':myProject').dependencies.resolve("runtime");


But if i resolve the deps of the configuration "compile"
        def projectClassPath =  
project(':myProject').dependencies.resolve("compile");

all dependencies are resolved.


What is the different between the scope/configuration runtime and  
compile? Table 12.1 in the  usergide on page 35  says that the runtime  
configuration extends the compile configuration.
So i think the runtime classpath should contains the same jars like  
the compile classpath + provided jars.



Marko



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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: runtime and compile dependency resolving

Marko Bauhardt-3

>
>
> But if i resolve the deps of the configuration "compile"
> def projectClassPath =  
> project(':myProject').dependencies.resolve("compile");

To get the transitive dependencies i must use the "default"  
configuration. is that right?

fyi
i use mavenStyledRepos


Marko


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

    http://xircles.codehaus.org/manage_email