You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by kermitt <he...@genesys.com> on 2007/06/12 09:23:43 UTC

transitive dependencies

Hi,

We have for instance 3 modules A, B, C where dependencies are : A->B->C. 

I am working on module C while a team mate is working on A. As we do not
modify module B, when I release C, B kept previous revision of module C as
dependency and my team mate do not get the new release.

What I am going to do to avoid to publish B each time C changed is to put a
dynamic revision 1.0.+ on C dependency in B while disabling replace dynamic
revision in the publish task.

My concern about this method, I can't ask anymore for specific revision and
break the concept of reproductible build. Can you advice ? 

thx
-- 
View this message in context: http://www.nabble.com/transitive-dependencies-tf3905983.html#a11074194
Sent from the ivy-user mailing list archive at Nabble.com.


Re: transitive dependencies

Posted by Xavier Hanin <xa...@gmail.com>.
Hi,

My opinion is that when C changes, if you want A to get the new revision,
the two options are to declare a dependency from A to C (because A requires
a different revision from the one requested by B), which is not my preferred
choice, or publish a new version of B (which is my preferred solution).
Indeed if C has changed it's interesting to rebuild and republish B to make
sure the new version of C doesn't break B. Using a continuous integration
server for this purpose is a very good practice too IMHO.

HTH,

Xavier

On 6/12/07, kermitt <he...@genesys.com> wrote:
>
>
> Hi,
>
> We have for instance 3 modules A, B, C where dependencies are : A->B->C.
>
> I am working on module C while a team mate is working on A. As we do not
> modify module B, when I release C, B kept previous revision of module C as
> dependency and my team mate do not get the new release.
>
> What I am going to do to avoid to publish B each time C changed is to put
> a
> dynamic revision 1.0.+ on C dependency in B while disabling replace
> dynamic
> revision in the publish task.
>
> My concern about this method, I can't ask anymore for specific revision
> and
> break the concept of reproductible build. Can you advice ?
>
> thx
> --
> View this message in context:
> http://www.nabble.com/transitive-dependencies-tf3905983.html#a11074194
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>


-- 
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/