-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jsscripting] Use OSGi-ified GraalVM dependencies (#18053)
* [jsscripting] Use OSGI-ified org.graalvm.sdk:* dependencies Signed-off-by: Florian Hotze <[email protected]>
- Loading branch information
1 parent
01cb892
commit 8c68fb7
Showing
5 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
!jdk.vm.ci.services | ||
</bnd.importpackage> | ||
<!-- Remember to check if the fix https://github.com/openhab/openhab-core/pull/4437 still works when upgrading GraalJS --> | ||
<graaljs.version>24.1.1</graaljs.version> | ||
<graaljs.version>24.1.2</graaljs.version> | ||
<oh.version>${project.version}</oh.version> | ||
<ohjs.version>[email protected]</ohjs.version> | ||
</properties> | ||
|
@@ -46,6 +46,14 @@ | |
<excludes> | ||
<exclude>org.lastnpe.eea:eea-all</exclude> | ||
<exclude>org.apache.karaf.features:framework</exclude> | ||
<!-- we use OSGI-ified version, so we don't need the following --> | ||
<exclude>org.graalvm.sdk:collections</exclude> | ||
<exclude>org.graalvm.sdk:jniutils</exclude> | ||
<exclude>org.graalvm.sdk:nativeimage</exclude> | ||
<exclude>org.graalvm.sdk:word</exclude> | ||
<exclude>org.graalvm.shadowed:icu4j</exclude> | ||
<exclude>org.graalvm.truffle:truffle-compiler</exclude> | ||
<exclude>org.graalvm.truffle:truffle-runtime</exclude> | ||
</excludes> | ||
</artifactSet> | ||
<createDependencyReducedPom>false</createDependencyReducedPom> | ||
|
@@ -109,6 +117,7 @@ | |
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- embed the JS resources into the bundle --> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>build-helper-maven-plugin</artifactId> | ||
|
@@ -141,6 +150,7 @@ | |
</build> | ||
|
||
<dependencies> | ||
<!-- Graal Polyglot Framework --> | ||
<dependency> | ||
<groupId>org.graalvm.polyglot</groupId> | ||
<artifactId>polyglot</artifactId> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8c68fb7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@florian-h05 When trying to resolve dependencies for
openhab-distro/launch/app/app.bndrun
with the jsscripting addon included, I now get:Reverting this commit makes it resolve.
Maybe there's a corresponding change that needs to be done in "openhab-distro" to make this work?
8c68fb7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit has been mentioned on openHAB Community. There might be relevant details there:
https://community.openhab.org/t/running-org-openhab-demo-app-with-org-openhab-automation-jsscripting-enabled/162466/1