From c1a63ff4c6ad5041ff0180547eb0394cbcecb378 Mon Sep 17 00:00:00 2001 From: J-N-K Date: Wed, 4 Sep 2024 23:07:21 +0200 Subject: [PATCH] [transform.jinja] Properly use jinjava OSGi (#17358) Depends on https://github.com/openhab/openhab-osgiify/pull/49 Signed-off-by: Jan N. Klug --- .../pom.xml | 11 +++++++++++ .../noEmbedDependencies.profile | 0 bundles/org.openhab.transform.jinja/pom.xml | 17 +++++------------ .../src/main/feature/feature.xml | 4 +++- 4 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 bundles/org.openhab.transform.jinja/noEmbedDependencies.profile diff --git a/bundles/org.openhab.binding.mqtt.homeassistant/pom.xml b/bundles/org.openhab.binding.mqtt.homeassistant/pom.xml index b6b0a0c118d..79773a7dc24 100644 --- a/bundles/org.openhab.binding.mqtt.homeassistant/pom.xml +++ b/bundles/org.openhab.binding.mqtt.homeassistant/pom.xml @@ -40,5 +40,16 @@ ${project.version} test + + com.hubspot.jinjava + jinjava + 2.7.2 + test + + + com.google.re2j + re2j + 1.2 + diff --git a/bundles/org.openhab.transform.jinja/noEmbedDependencies.profile b/bundles/org.openhab.transform.jinja/noEmbedDependencies.profile new file mode 100644 index 00000000000..e69de29bb2d diff --git a/bundles/org.openhab.transform.jinja/pom.xml b/bundles/org.openhab.transform.jinja/pom.xml index acf4a15b95e..0adfa3d09a6 100644 --- a/bundles/org.openhab.transform.jinja/pom.xml +++ b/bundles/org.openhab.transform.jinja/pom.xml @@ -14,23 +14,16 @@ openHAB Add-ons :: Bundles :: Transformation Service :: Jinja - - - javax.annotation.*;resolution:=optional,com.googlecode.ipv6.*;resolution:=optional,ch.obermuhlner.math.big.*;resolution:=optional,com.google.common.*;resolution:=optional,com.fasterxml.jackson.*;resolution:=optional,org.jsoup.*;resolution:=optional,org.apache.commons.*;resolution:=optional,org.apache.commons.net.*;resolution:=optional - - jackson-annotations,jackson-databind,jackson-core,jackson-dataformat-yaml,commons-lang3,commons-net - - - org.openhab.osgiify - com.hubspot.jinjava.jinjava + com.hubspot.jinjava + jinjava 2.7.2 compile - org.openhab.osgiify - com.google.re2j.re2j + com.google.re2j + re2j 1.2 compile @@ -68,7 +61,7 @@ org.jsoup jsoup 1.15.3 - provided + compile org.apache.commons diff --git a/bundles/org.openhab.transform.jinja/src/main/feature/feature.xml b/bundles/org.openhab.transform.jinja/src/main/feature/feature.xml index 9181d56bff2..7276e97d274 100644 --- a/bundles/org.openhab.transform.jinja/src/main/feature/feature.xml +++ b/bundles/org.openhab.transform.jinja/src/main/feature/feature.xml @@ -5,7 +5,9 @@ openhab-runtime-base openhab.tp-commons-net - mvn:org.apache.commons/commons-lang3/3.4 + mvn:org.openhab.osgiify/com.hubspot.jinjava.jinjava/2.7.2_0 + mvn:org.openhab.osgiify/com.google.re2j.re2j/1.2 + mvn:ch.obermuhlner/big-math/2.3.2 mvn:org.openhab.addons.bundles/org.openhab.transform.jinja/${project.version}