I\'m building an OSGi jar using Gradle, and I\'m having a bit of trouble with the manifest. Here\'s an excerpt from my build script:
apply plugin: \'java\'
a
I'm not familiar with the Gradle bnd plugin, but I am familiar with bnd.
The default value of Import-Package
in bnd instruction is *
. The means: match against all of the generated imports. If you specify a single value for Import-Package
then it overrides the *
and becomes the sole import. Therefore your Import-Package
instruction nearly always should end with a catch-all *
in the last position.
Taking a guess at how this would translate to Groovy/Gradle, I suggest the following:
instruction 'Import-Package', 'org.springframework.orm', '*'