On Fri, Aug 4, 2017 at 10:44 AM, LE FEVRE FRANCOIS <francois.le-fevre@xxxxxx> wrote:
For the bundles that are extracted from the children module, sometimes the developer upgrade the version of the module but forgot to upgrade the different modules
that list this plugin as required bundle.
[...]
The developer upgrade the version of A1 to 1.1.0 and reflect it in A2 but forgot to do it in A3
First, this is actually a good OSGi practice to *not* update versions unless needed (ie if resulting binary did chnage). Not changing version allows to have a broad compatibility range, which can be pretty convenient. PDE API Tools can
help (in the IDE) to remind to update versions according to OSGi best practices, at Tycho level, there isn't an easy way to enable PDE API Tools.
How can we check automatically that all versions are the same for a given module?
[...]
How can we gather the fact that in all plugins in the project A, the A1 version to be used is 1.1.0
There might be existing mojos or you can write your own one that looks at all modules in the reactor and fail if they are not equals.
But as far as I know, it's not a common practice.
Is there a way to define outside the version of the required bundles that belongs to the same project?