Swiching between snapshot dependencies and project dependencies in eclipse


(julian.metzler) #1

Hi,

I use gradle in a multiproject structure and upload all artifacts to a nexus repository during the build. To be able to build each single project separately they all have snapshot dependencies. For the nightly build another build script is used which adds task dependencies to the projects so the projects are build in the right order.

let’s say we have two projects; A and B, and B is dependent on A. When importing the projects into eclipse the import should be possible in two ways:

A should be import and get all it’s dependencies from Nexus.

B should be import and get all it’s dependencies from Nexus (including the dependency to A)

A should be import and get all it’s dependencies from Nexus.

B should be import but get the dependency to A from within Eclipse rather than from Nexus.

Is this possible? And how?

Cheers Julian


(Peter Niederwieser) #2

You’d have to script your own solution which, depending on the circumstances, declares project dependencies or external dependencies. Some users do this already; I expect this to become an out-of-the-box feature in the future.


(julian.metzler) #3

Thanks for the reply.