2022-12-19 15:22:17 +01:00
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns= "http://maven.apache.org/POM/4.0.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2021-05-06 09:08:47 +02:00
<modelVersion > 4.0.0</modelVersion>
<parent >
<groupId > org.openhab.addons.bundles</groupId>
<artifactId > org.openhab.addons.reactor.bundles</artifactId>
2022-12-19 01:55:11 +01:00
<version > 4.0.0-SNAPSHOT</version>
2021-05-06 09:08:47 +02:00
</parent>
<artifactId > org.openhab.automation.jsscripting</artifactId>
2022-11-24 23:23:19 +01:00
<name > openHAB Add-ons :: Bundles :: Automation :: JavaScript Scripting</name>
2021-05-06 09:08:47 +02:00
<properties >
<bnd.importpackage >
!sun.misc.*,
!sun.reflect.*,
!com.sun.management.*,
!jdk.internal.reflect.*,
!jdk.vm.ci.services
</bnd.importpackage>
2022-12-30 23:04:43 +01:00
<graal.version > 22.0.0.2</graal.version> <!-- DO NOT UPGRADE: 22.0.0.2 is the latest version working on armv7l / OpenJDK 11.0.16 & armv7l / Zulu 17.0.5+8 -->
2021-05-06 09:08:47 +02:00
<oh.version > ${project.version}</oh.version>
2022-12-11 15:25:39 +01:00
<ohjs.version > openhab@3.1.2</ohjs.version>
2021-05-06 09:08:47 +02:00
</properties>
<build >
<plugins >
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-dependency-plugin</artifactId>
<executions >
<execution >
<id > embed-dependencies</id>
<goals >
<goal > unpack-dependencies</goal>
</goals>
<configuration >
<excludes > META-INF/services/com.oracle.truffle.api.TruffleLanguage$Provider</excludes> <!-- we'll provide this -->
</configuration>
</execution>
</executions>
</plugin>
2021-12-13 08:13:13 +01:00
<plugin >
<groupId > com.github.eirslett</groupId>
<artifactId > frontend-maven-plugin</artifactId>
2022-11-20 17:30:23 +01:00
<version > 1.12.1</version>
2021-12-13 08:13:13 +01:00
<configuration >
2022-11-20 17:30:23 +01:00
<nodeVersion > v16.17.1</nodeVersion> <!-- DO NOT DOWNGRADE: NodeJS < 16 doesn't support Apple Silicon -->
2021-12-13 08:13:13 +01:00
<workingDirectory > target/js</workingDirectory>
</configuration>
<executions >
<execution >
<id > Install node and npm</id>
<goals >
<goal > install-node-and-npm</goal>
</goals>
<phase > generate-sources</phase>
</execution>
<execution >
<id > npm install</id>
<goals >
<goal > npm</goal>
</goals>
<configuration >
2022-11-20 17:30:23 +01:00
<arguments > install ${ohjs.version} webpack@5.75.0 webpack-cli@4.10.0</arguments> <!-- webpack - cli >= 5.0.0 doesn't properly process the given entrypoint -->
2021-12-13 08:13:13 +01:00
</configuration>
</execution>
<execution >
<id > npx webpack</id>
<goals >
<goal > npx</goal>
</goals>
<configuration >
<arguments > webpack -c ./node_modules/openhab/webpack.config.js --entry ./node_modules/openhab/ -o ./dist</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin >
<groupId > org.codehaus.mojo</groupId>
<artifactId > build-helper-maven-plugin</artifactId>
<executions >
<execution >
<goals >
<goal > add-resource</goal>
</goals>
<phase > generate-sources</phase>
<configuration >
<resources >
<resource >
<directory > target/js/dist</directory>
<targetPath > node_modules</targetPath>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
2022-12-14 20:12:54 +01:00
<plugin >
<groupId > org.openhab.tools.sat</groupId>
<artifactId > sat-plugin</artifactId>
<configuration >
<pmdFilter > ${project.basedir}/suppressions.properties</pmdFilter>
</configuration>
</plugin>
2021-05-06 09:08:47 +02:00
</plugins>
</build>
<dependencies >
<dependency >
<groupId > org.graalvm.truffle</groupId>
<artifactId > truffle-api</artifactId>
<version > ${graal.version}</version>
</dependency>
<dependency >
<groupId > org.graalvm.js</groupId>
<artifactId > js-scriptengine</artifactId>
<version > ${graal.version}</version>
</dependency>
<dependency >
<groupId > org.graalvm.sdk</groupId>
<artifactId > graal-sdk</artifactId>
<version > ${graal.version}</version>
</dependency>
<dependency >
<groupId > org.graalvm.regex</groupId>
<artifactId > regex</artifactId>
<version > ${graal.version}</version>
</dependency>
<dependency > <!-- this must come AFTER the regex lib -->
<groupId > org.graalvm.js</groupId>
<artifactId > js</artifactId>
<version > ${graal.version}</version>
</dependency>
2022-12-30 23:04:43 +01:00
<!-- GraalJS changelog says that com.ibm.icu/icu4j is not required for GraalJS >= 22.0.0 as it moved to org.graalvm.truffle;
but GraalJS >= 22.2.0 requires it, so we'll need to add it when we upgrade -->
2021-05-06 09:08:47 +02:00
</dependencies>
</project>