Commit 81d4678
committed
Make JSON imports optional in OSGi environments
When deploying in OSGi containers the Jedis bundle has two hard requirements on having
the GSON and JSON bundles around. Since these depenendencies are optional we mark
the imports as such in the OSGi manifest.
If these packages are not exported the bundle will be installed and will be unable to
make use of the JSON functionality. When they are present they will be used.
Additionally, allow newer version of the org.json bundle to be used without requiring
a new release of Jedis.1 parent 251831c commit 81d4678
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
295 | 308 | | |
296 | 309 | | |
297 | 310 | | |
| |||
0 commit comments