This commit is contained in:
Florian Hotze 2025-01-09 21:13:37 +10:00 committed by GitHub
commit c3ec06758e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,6 @@
Bundle-SymbolicName: ${project.artifactId} Bundle-SymbolicName: ${project.artifactId}
DynamicImport-Package: * 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: Require-Capability:
osgi.extender:= osgi.extender:=
filter:="(osgi.extender=osgi.serviceloader.processor)", filter:="(osgi.extender=osgi.serviceloader.processor)",

View File

@ -46,6 +46,12 @@
<excludes> <excludes>
<exclude>org.lastnpe.eea:eea-all</exclude> <exclude>org.lastnpe.eea:eea-all</exclude>
<exclude>org.apache.karaf.features:framework</exclude> <exclude>org.apache.karaf.features:framework</exclude>
<!-- we use OSGI-ified version, so we don't need the following -->
<exclude>org.graalvm.polyglot:polyglot</exclude>
<exclude>org.graalvm.sdk:collections</exclude>
<exclude>org.graalvm.sdk:jniutils</exclude>
<exclude>org.graalvm.sdk:nativeimage</exclude>
<exclude>org.graalvm.sdk:word</exclude>
</excludes> </excludes>
</artifactSet> </artifactSet>
<createDependencyReducedPom>false</createDependencyReducedPom> <createDependencyReducedPom>false</createDependencyReducedPom>
@ -141,11 +147,7 @@
</build> </build>
<dependencies> <dependencies>
<dependency> <!-- org.graalvm.polyglot:polyglot is provided through OSGi bundles -->
<groupId>org.graalvm.polyglot</groupId>
<artifactId>polyglot</artifactId>
<version>${graaljs.version}</version>
</dependency>
<!-- Graal JavaScript ScriptEngine JSR 223 support --> <!-- Graal JavaScript ScriptEngine JSR 223 support -->
<dependency> <dependency>
<groupId>org.graalvm.js</groupId> <groupId>org.graalvm.js</groupId>

View File

@ -5,6 +5,7 @@
<feature name="openhab-automation-jsscripting" description="JavaScript Scripting" version="${project.version}"> <feature name="openhab-automation-jsscripting" description="JavaScript Scripting" version="${project.version}">
<feature>openhab-runtime-base</feature> <feature>openhab-runtime-base</feature>
<bundle dependency="true">mvn:org.openhab.osgiify/org.graalvm.polyglot.polyglot/24.1.1</bundle>
<bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.automation.jsscripting/${project.version}</bundle> <bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.automation.jsscripting/${project.version}</bundle>
</feature> </feature>
</features> </features>