<?xml version="1.0" encoding="UTF-8"?>
<!--
 - Copyright (C) 2019-2021 ConnectorIO Sp. z o.o.
 -
 - Licensed under the Apache License, Version 2.0 (the "License");
 - you may not use this file except in compliance with the License.
 - You may obtain a copy of the License at
 -
 -     http://www.apache.org/licenses/LICENSE-2.0
 -
 - Unless required by applicable law or agreed to in writing, software
 - distributed under the License is distributed on an "AS IS" BASIS,
 - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 - See the License for the specific language governing permissions and
 - limitations under the License.
 -
 - SPDX-License-Identifier: Apache-2.0
 -->
<features name="co7io-binding-opcua-3.0.0-pr-112-SNAPSHOT" xmlns="http://karaf.apache.org/xmlns/features/v1.6.0">

  <repository>mvn:org.connectorio.addons/org.connectorio.addons.feature/3.0.0-pr-112-SNAPSHOT/xml/features</repository>

  <feature name="eclipse-milo" description="Eclipse Milo" version="0.6.7" hidden="true">
    <details>Implementation of OPC UA protocol, client and server stack</details>
    <feature prerequisite="true">wrap</feature>
    <feature>openhab.tp-netty</feature>

    <bundle>wrap:mvn:com.digitalpetri.fsm/strict-machine/0.6</bundle>
    <bundle>wrap:mvn:com.digitalpetri.netty/netty-channel-fsm/0.8</bundle>
    <bundle>mvn:com.google.guava/guava/31.0.1-jre</bundle>
    <bundle>mvn:org.eclipse.milo/sdk-client/0.6.7</bundle>

    <bundle>mvn:org.eclipse.milo/sdk-core/0.6.7</bundle>
    <bundle>mvn:org.eclipse.milo/stack-client/0.6.7</bundle>
    <bundle>wrap:mvn:org.eclipse.milo/stack-core/0.6.7$overwrite=merge&amp;Import-Package=sun.security*;resolution:=optional,*</bundle>
    <bundle>mvn:org.bouncycastle/bcprov-jdk15on/1.69</bundle>
    <bundle>mvn:org.bouncycastle/bcpkix-jdk15on/1.69</bundle>
    <bundle>mvn:org.bouncycastle/bcutil-jdk15on/1.69</bundle>
  </feature>

  <feature name="openhab-binding-co7io-opcua" description="OPC UA Binding" version="3.0.0-pr-112-SNAPSHOT">
    <feature>co7io-binding-opcua</feature>
  </feature>

  <feature name="co7io-binding-opcua" description="OPC UA Binding" version="3.0.0-pr-112-SNAPSHOT">
    <feature>openhab-runtime-base</feature>
    <feature>co7io-binding-base</feature>
    <feature version="0.6.7">eclipse-milo</feature>
    <bundle start-level="80">mvn:org.connectorio.addons/org.connectorio.addons.binding.opcua/3.0.0-pr-112-SNAPSHOT</bundle>
  </feature>

</features>
