say I have in a "api-impl" subproject's build.gradle this:

dependsOn(':api-contract')

dependencies {
        compile project(':api-contract')
        
}

I do not *quite* get the differences between the two declarations above.. I 
mean, it appears like it should be obvious, but the intentions/end result i'm 
not so sure about.

I want my implementation to "depends on" the api obviously (very common 
pattern).

So.. the 2nd part to me woudl indicate it just wants to rely on the same jar's 
etc... as what api-contract implements.

Thus.. is the "first one".. to rely on the classes from the api-contract?

Longer term, obviously, i'd rather have the impl have:

dependencies {
   compile 'api-contract-latest.jar'
}

and this in a maven repo.. but baby steps heh

(the documentation on publishing artifacts is simply.. TBD, so I'm avoiding 
that for now)

Roger


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

    http://xircles.codehaus.org/manage_email


Reply via email to