From a64e72aff418223453a2d6fba9b67de89fe05ce0 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Mon, 6 Jan 2025 14:48:37 +0100 Subject: [PATCH] [not working] [jsscripting] Use OSGI-ified GraalVM dependencies Signed-off-by: Florian Hotze --- bundles/org.openhab.automation.jsscripting/bnd.bnd | 2 +- bundles/org.openhab.automation.jsscripting/pom.xml | 12 +++++++----- .../src/main/feature/feature.xml | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/bundles/org.openhab.automation.jsscripting/bnd.bnd b/bundles/org.openhab.automation.jsscripting/bnd.bnd index b10e569e696..a9146ed7c6a 100644 --- a/bundles/org.openhab.automation.jsscripting/bnd.bnd +++ b/bundles/org.openhab.automation.jsscripting/bnd.bnd @@ -1,6 +1,6 @@ Bundle-SymbolicName: ${project.artifactId} DynamicImport-Package: * -Import-Package: org.openhab.core.automation.module.script,org.openhab.core.items,org.openhab.core.library.types,javax.management,javax.script,javax.xml.datatype,javax.xml.stream;version="[1.0,2)",org.osgi.framework;version="[1.8,2)",org.slf4j;version="[1.7,2)" +Import-Package: org.graalvm.home,org.graalvm.options,org.graalvm.polyglot,org.openhab.core.automation.module.script,org.openhab.core.items,org.openhab.core.library.types,javax.management,javax.script,javax.xml.datatype,javax.xml.stream;version="[1.0,2)",org.osgi.framework;version="[1.8,2)",org.slf4j;version="[1.7,2)" Require-Capability: osgi.extender:= filter:="(osgi.extender=osgi.serviceloader.processor)", diff --git a/bundles/org.openhab.automation.jsscripting/pom.xml b/bundles/org.openhab.automation.jsscripting/pom.xml index 6db5f18c5cb..6e9e0d80f00 100644 --- a/bundles/org.openhab.automation.jsscripting/pom.xml +++ b/bundles/org.openhab.automation.jsscripting/pom.xml @@ -46,6 +46,12 @@ org.lastnpe.eea:eea-all org.apache.karaf.features:framework + + org.graalvm.polyglot:polyglot + org.graalvm.sdk:collections + org.graalvm.sdk:jniutils + org.graalvm.sdk:nativeimage + org.graalvm.sdk:word false @@ -141,11 +147,7 @@ - - org.graalvm.polyglot - polyglot - ${graaljs.version} - + org.graalvm.js diff --git a/bundles/org.openhab.automation.jsscripting/src/main/feature/feature.xml b/bundles/org.openhab.automation.jsscripting/src/main/feature/feature.xml index a54eb9e62f4..8c440309e26 100644 --- a/bundles/org.openhab.automation.jsscripting/src/main/feature/feature.xml +++ b/bundles/org.openhab.automation.jsscripting/src/main/feature/feature.xml @@ -5,6 +5,7 @@ openhab-runtime-base + mvn:org.openhab.osgiify/org.graalvm.polyglot.polyglot/24.1.1 mvn:org.openhab.addons.bundles/org.openhab.automation.jsscripting/${project.version}