Ok, so a little more investigating, here is the bundle info for my binding when I run it within the eclipse ide.
I am having issues because the APIs have changed significantly between v10 and v18.
Any suggestions much appreciated.
craig
NOTE, particularly interested in the com.google.common.util.concurrent wiring
bundle 101
org.openhab.binding.omnilink_2.1.0.qualifier [101]
Id=101, Status=ACTIVE Data Root=/Users/craigh/openhab2-master/ws/.metadata/.plugins/org.eclipse.pde.core/openHAB_Runtime/org.eclipse.osgi/101/data
"Registered Services"
{org.eclipse.smarthome.config.discovery.DiscoveryService}={component.name=org.eclipse.smarthome.binding.astro.discovery, component.id=138, service.id=193, service.bundleid=101, service.scope=bundle}
{org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=binding.omnilink, component.id=139, service.id=194, service.bundleid=101, service.scope=bundle}
{org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=263, service.bundleid=101, service.scope=singleton}
Services in use:
{org.eclipse.smarthome.config.core.ConfigDescriptionRegistry}={component.name=ConfigDescriptionRegistry, component.id=124, service.id=156, service.bundleid=78, service.scope=bundle}
{org.eclipse.smarthome.core.thing.link.ItemChannelLinkRegistry}={component.name=org.eclipse.smarthome.core.thing.link.ItemChannelLinkRegistry, component.id=103, service.id=132, service.bundleid=70, service.scope=bundle}
{org.eclipse.smarthome.core.thing.ThingRegistry}={component.name=org.eclipse.smarthome.core.thing.ThingRegistry, component.id=114, service.id=131, service.bundleid=70, service.scope=bundle}
{org.eclipse.smarthome.core.thing.type.ThingTypeRegistry}={component.name=org.eclipse.smarthome.core.thing.type.ThingTypeRegistry, component.id=116, service.id=138, service.bundleid=70, service.scope=bundle}
Exported packages
org.openhab.binding.omnilink; version="0.0.0"[exported]
org.openhab.binding.omnilink.handler; version="0.0.0"[exported]
Imported packages
com.google.common.base; version="10.0.1" <com.google.guava_10.0.1.v201203051515 [49]>
com.google.common.collect; version="10.0.1" <com.google.guava_10.0.1.v201203051515 [49]>
com.google.common.util.concurrent; version="10.0.1" <com.google.guava_10.0.1.v201203051515 [49]>
org.eclipse.smarthome.config.core; version="0.0.0" <org.eclipse.smarthome.config.core_0.9.0.201704011656 [78]>
org.eclipse.smarthome.config.discovery; version="0.0.0" <org.eclipse.smarthome.config.discovery_0.9.0.201704011656 [52]>
org.eclipse.smarthome.core.library.types; version="0.0.0" <org.eclipse.smarthome.core_0.9.0.201704011656 [35]>
org.eclipse.smarthome.core.thing; version="0.0.0" <org.eclipse.smarthome.core.thing_0.9.0.201704011656 [70]>
org.eclipse.smarthome.core.thing.binding; version="0.0.0" <org.eclipse.smarthome.core.thing_0.9.0.201704011656 [70]>
org.eclipse.smarthome.core.thing.binding.builder; version="0.0.0" <org.eclipse.smarthome.core.thing_0.9.0.201704011656 [70]>
org.eclipse.smarthome.core.thing.type; version="0.0.0" <org.eclipse.smarthome.core.thing_0.9.0.201704011656 [70]>
org.eclipse.smarthome.core.types; version="0.0.0" <org.eclipse.smarthome.core_0.9.0.201704011656 [35]>
org.osgi.framework; version="1.8.0" <org.eclipse.osgi_3.10.2.v20150203-1939 [0]>
org.slf4j; version="1.7.2" <org.slf4j.api_1.7.2.v20121108-1250 [50]>
No fragment bundles
No required bundles
When I deploy the binding to the latest docker build, here is what I get, not it is using v18 of Guava instead of 10 within my Ide.
openhab> bundle:requirements 221
org.openhab.binding.omnilink_2.1.0.201704231759 [221] requires:
---------------------------------------------------------------
osgi.wiring.package; (osgi.wiring.package=com.google.common.base) resolved by:
osgi.wiring.package; com.google.common.base 18.0.0 from com.google.guava_18.0.0 [13]
osgi.wiring.package; (osgi.wiring.package=com.google.common.collect) resolved by:
osgi.wiring.package; com.google.common.collect 18.0.0 from com.google.guava_18.0.0 [13]
osgi.wiring.package; (osgi.wiring.package=com.google.common.util.concurrent) resolved by:
osgi.wiring.package; com.google.common.util.concurrent 18.0.0 from com.google.guava_18.0.0 [13]
osgi.wiring.package; (osgi.wiring.package=org.eclipse.smarthome.config.core) resolved by:
osgi.wiring.package; org.eclipse.smarthome.config.core 0.0.0 from org.eclipse.smarthome.config.core_0.9.0.201704201358 [96]
osgi.wiring.package; (osgi.wiring.package=org.eclipse.smarthome.config.discovery) resolved by:
osgi.wiring.package; org.eclipse.smarthome.config.discovery 0.0.0 from org.eclipse.smarthome.config.discovery_0.9.0.201704201358 [97]
osgi.wiring.package; (osgi.wiring.package=org.eclipse.smarthome.core.library.types) resolved by:
osgi.wiring.package; org.eclipse.smarthome.core.library.types 0.0.0 from org.eclipse.smarthome.core_0.9.0.201704201358 [100]
osgi.wiring.package; (osgi.wiring.package=org.eclipse.smarthome.core.thing) resolved by:
osgi.wiring.package; org.eclipse.smarthome.core.thing 0.0.0 from org.eclipse.smarthome.core.thing_0.9.0.201704201358 [107]
osgi.wiring.package; (osgi.wiring.package=org.eclipse.smarthome.core.thing.binding) resolved by:
osgi.wiring.package; org.eclipse.smarthome.core.thing.binding 0.0.0 from org.eclipse.smarthome.core.thing_0.9.0.201704201358 [107]
osgi.wiring.package; (osgi.wiring.package=org.eclipse.smarthome.core.thing.binding.builder) resolved by:
osgi.wiring.package; org.eclipse.smarthome.core.thing.binding.builder 0.0.0 from org.eclipse.smarthome.core.thing_0.9.0.201704201358 [107]
I have tried specifying version constraints, but the 2 versions are not available within either environment.
My Manifest looks like this:
Import-Package:
com.google.common.base,
com.google.common.collect,
com.google.common.util.concurrent,