In OSGi, if I do not specify version in the Export-Package directive inside MANIFEST.MF, which version exported package will get?
- Version equal to the bundle version?
- Zero version (something like 0.0.0)?
- Something else?
P.S. And here is the rationale behind this logic: https://mail.osgi.org/pipermail/osgi-dev/2010-August/002608.html
For Export-Package the version defaults to 0.0.0, and for Import-Package the version defaults to [0.0.0, infinte]. See also chapters 3.5.4 and 3.5.5 of the OSGi Core Specification.