]> git.basschouten.com Git - openhab-addons.git/commit
[jsscriptingnashorn] JavaScript Scripting Nashorn Automation (#14013)
authorWouter Born <github@maindrain.net>
Mon, 26 Dec 2022 14:27:03 +0000 (15:27 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Dec 2022 14:27:03 +0000 (15:27 +0100)
commit88c0b720c69fd363284efd33f7668eee677b6b00
tree4882eebef1f4797f2de2aaabf6c7bbdd00b08282
parent605574b6009a538300eb1f9a6b1ee2d079d3b949
[jsscriptingnashorn] JavaScript Scripting Nashorn Automation  (#14013)

* [jsscriptingnashorn] JavaScript Scripting Nashorn Automation

This add-on allows you to use your older JavaScript (ECMAScript 5.1) rules on newer Java versions until they are migrated to JavaScript (ECMAScript 2021+).
The add-on uses a standalone [Nashorn Engine](https://github.com/openjdk/nashorn) which was part of Java until it was removed in Java 15.

* Update parent to 3.4.0-SNAPSHOT and nashorn-core to 15.4

For the Nashorn changelog, see:

https://github.com/openjdk/nashorn/blob/main/CHANGELOG.md

* Update parent to 4.0.0-SNAPSHOT
* Remove removeUnsupportedNashornArgs
* Update scriptTypes
* Add CODEOWNERS entry
* Recycle ScriptScopeOSGiTest.java

It got removed in openhab/openhab-core#2994

* Remove redundant new line from pom.xml

Signed-off-by: Wouter Born <github@maindrain.net>
17 files changed:
CODEOWNERS
bom/openhab-addons/pom.xml
bundles/org.openhab.automation.jsscriptingnashorn/NOTICE [new file with mode: 0644]
bundles/org.openhab.automation.jsscriptingnashorn/README.md [new file with mode: 0644]
bundles/org.openhab.automation.jsscriptingnashorn/pom.xml [new file with mode: 0644]
bundles/org.openhab.automation.jsscriptingnashorn/src/main/feature/feature.xml [new file with mode: 0644]
bundles/org.openhab.automation.jsscriptingnashorn/src/main/java/org/openhab/automation/jsscriptingnashorn/internal/NashornScriptEngineFactory.java [new file with mode: 0644]
bundles/org.openhab.automation.jsscriptingnashorn/src/main/java/org/openhab/automation/jsscriptingnashorn/internal/package-info.java [new file with mode: 0644]
bundles/org.openhab.automation.jsscriptingnashorn/src/test/java/org/openhab/automation/jsscriptingnashorn/NashornScriptEngineFactoryTest.java [new file with mode: 0644]
bundles/pom.xml
itests/org.openhab.automation.jsscriptingnashorn.tests/NOTICE [new file with mode: 0644]
itests/org.openhab.automation.jsscriptingnashorn.tests/itest.bndrun [new file with mode: 0644]
itests/org.openhab.automation.jsscriptingnashorn.tests/pom.xml [new file with mode: 0644]
itests/org.openhab.automation.jsscriptingnashorn.tests/src/main/java/org/openhab/automation/jsscriptingnashorn/ScriptScopeOSGiTest.java [new file with mode: 0644]
itests/org.openhab.automation.jsscriptingnashorn.tests/src/main/resources/OH-INF/automation/jsr223/scopeFailure.nashornjs [new file with mode: 0644]
itests/org.openhab.automation.jsscriptingnashorn.tests/src/main/resources/OH-INF/automation/jsr223/scopeWorking.nashornjs [new file with mode: 0644]
itests/pom.xml