Selection of additional dependencies of OSGi packages with Ivy

I use Ivy to solve OSGi packages, for example org.eclipse.jdt:

<dependencies>
    <dependency org="bundle" name="org.eclipse.jdt" rev="x.y.z"/>
</dependencies>

It works great and gives me all the required dependencies.

My question is, how can I select some (not all) additional dependencies of transitive packages?

I can:

  • Select optional dependencies org.eclipse.jdtby activating the configurationuse_xxx
  • Select all optional dependencies using transitive-optionalconfiguration

I really need the ability to globally activate the configuration use_yyy. Globally means (in relation to all transition dependencies):

  • If the module does not have this configuration, do nothing.
  • If the module has this configuration, activate it.
+4

Source: https://habr.com/ru/post/1546854/


All Articles