DbSetup does not provide osgi metadata in it's MANIFEST.MF.
So it cannot be used in osgi runtimes as is.
That would be nice if it could include OSGI manifest information.
I don't know much about OSGI.
Could you please tell me what metadata, and in which format, should be in the manifest file?
The more important osgi manifest attributes are :
So in your case the osgi manifest could look like this:
Bundle-Vendor: Ninja Squad
Gradle has an OSGI plugin (http://gradle.org/docs/current/userguide/osgi_plugin.html) that helps generating the osgi manifests attributes.
@sarod I created a PR (#38) for this, and pasted the generated manifest file in the PR comment. Could you please check if it looks OK to you?
Given my ignorance of OSGI, my concerns are
;uses:=<list of used packages>"
The generated manifest is fine.
instruction 'Import-Package', '!javax.annotation*'
removes javax.annotation, but also removes javax.sql
instruction 'Import-Package', '!javax.annotation.*', '*'
I'll merge this PR and release a new version today.
fix #36: make DbSetup osgi-ready