opensmarthouse / opensmarthouse-core

Eclipse Public License 2.0
7 stars 0 forks source link

Provide 'compat' features which bridge oh and osh features. #12

Closed splatch closed 3 years ago

splatch commented 3 years ago

Given that we need to provide a way to run openHAB bindings within OSH I come with idea of "compat" feature sets. These features are really "shells" over OSH features within same name. For example opensmarthouse-tp-jax-rs will become openhab-tp-jax-rs in compat layer refering "source" feature. To make it visual:

    <feature name="openhab-tp-jackson">
        <feature>opensmarthouse-tp-jackson</feature>
    </feature>

    <feature name="openhab-tp-jax-rs">
        <feature>opensmarthouse-tp-jax-rs</feature>
    </feature>

    <feature name="openhab-tp-jax-rs-whiteboard">
        <feature>opensmarthouse-tp-jax-rs-whiteboard</feature>
    </feature>

Given that we have a bit more features in core than openHAB we should be able to bridge all necessary elements in semi automatic way.

For now compat features do not specify any versions cause we have conflict between 0.9 and 3.0. Transformation can be updated to include both, but for simplicity I omitted them.

cdjackson commented 3 years ago

Thanks @splatch - so if I understand, this generates a second set of features matching the OH feature names so that OH3 bindings will run?

Nice. Thanks.

splatch commented 3 years ago

Yup, that's what it does.