From ac1f4080e3896d0a9b44cef3e5ca74efa58273ed Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Fri, 8 May 2020 11:48:06 +0200 Subject: [PATCH] Update nrjavaserial in TP to 5.0.2 and define import version range (#1464) The first version of nrjavaserial with OSGi manifest entries is 3.12.0. The interface has not changed and is still the same with nrjavaserial 5.x. So using 3.12.0 as compile time dependency and defining a [3.12,6) version range using bnd.bnd files allows for maximum flexibility. Signed-off-by: Wouter Born --- bom/compile/pom.xml | 4 +--- bom/runtime/pom.xml | 2 +- .../bnd.bnd | 5 +++++ bundles/org.openhab.core.io.transport.serial.rxtx/bnd.bnd | 4 ++++ features/karaf/openhab-tp/src/main/feature/feature.xml | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 bundles/org.openhab.core.io.transport.serial.rxtx.rfc2217/bnd.bnd create mode 100644 bundles/org.openhab.core.io.transport.serial.rxtx/bnd.bnd diff --git a/bom/compile/pom.xml b/bom/compile/pom.xml index 26bb7e9d77..dc744b8ddc 100644 --- a/bom/compile/pom.xml +++ b/bom/compile/pom.xml @@ -223,8 +223,6 @@ - org.vesalainen.comm javaxcomm @@ -234,7 +232,7 @@ com.neuronrobotics nrjavaserial - 3.20.0 + 3.12.0 compile diff --git a/bom/runtime/pom.xml b/bom/runtime/pom.xml index 9ebee56065..a74b7149d2 100644 --- a/bom/runtime/pom.xml +++ b/bom/runtime/pom.xml @@ -462,7 +462,7 @@ com.neuronrobotics nrjavaserial - 3.20.0 + 5.0.2 compile diff --git a/bundles/org.openhab.core.io.transport.serial.rxtx.rfc2217/bnd.bnd b/bundles/org.openhab.core.io.transport.serial.rxtx.rfc2217/bnd.bnd new file mode 100644 index 0000000000..635c6af2fc --- /dev/null +++ b/bundles/org.openhab.core.io.transport.serial.rxtx.rfc2217/bnd.bnd @@ -0,0 +1,5 @@ +Bundle-SymbolicName: ${project.artifactId} +Import-Package: \ + gnu.io;version="[3.12,6)",\ + gnu.io.rfc2217;version="[3.12,6)",\ + * diff --git a/bundles/org.openhab.core.io.transport.serial.rxtx/bnd.bnd b/bundles/org.openhab.core.io.transport.serial.rxtx/bnd.bnd new file mode 100644 index 0000000000..287c57a36a --- /dev/null +++ b/bundles/org.openhab.core.io.transport.serial.rxtx/bnd.bnd @@ -0,0 +1,4 @@ +Bundle-SymbolicName: ${project.artifactId} +Import-Package: \ + gnu.io;version="[3.12,6)",\ + * diff --git a/features/karaf/openhab-tp/src/main/feature/feature.xml b/features/karaf/openhab-tp/src/main/feature/feature.xml index 2fcd6143df..95b04410a7 100644 --- a/features/karaf/openhab-tp/src/main/feature/feature.xml +++ b/features/karaf/openhab-tp/src/main/feature/feature.xml @@ -212,7 +212,7 @@ openhab.tp;feature=serial;impl=rxtx - mvn:com.neuronrobotics/nrjavaserial/3.20.0 + mvn:com.neuronrobotics/nrjavaserial/5.0.2