95 lines
3.3 KiB
XML
95 lines
3.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
<parent>
|
||
<artifactId>yudao-module-iot</artifactId>
|
||
<groupId>cn.iocoder.boot</groupId>
|
||
<version>${revision}</version>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<artifactId>yudao-module-iot-script</artifactId>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>${project.artifactId}</name>
|
||
<description>IoT 脚本模块,提供 JavaScript 引擎解析等功能</description>
|
||
|
||
<dependencies>
|
||
<!-- 引入公共模块 -->
|
||
<dependency>
|
||
<groupId>cn.iocoder.boot</groupId>
|
||
<artifactId>yudao-module-iot-api</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
|
||
<!-- Spring 相关依赖 -->
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-context</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 工具类相关 -->
|
||
<dependency>
|
||
<groupId>cn.hutool</groupId>
|
||
<artifactId>hutool-all</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.slf4j</groupId>
|
||
<artifactId>slf4j-api</artifactId>
|
||
</dependency>
|
||
|
||
<!-- JavaScript 引擎 - 使用 GraalJS 替代 Nashorn -->
|
||
<!-- TODO @haohao:得考虑下,jdk8 可能不支持 graalvm,后续哈;【优先级:低】 -->
|
||
<dependency>
|
||
<groupId>org.graalvm.sdk</groupId>
|
||
<artifactId>graal-sdk</artifactId>
|
||
<version>22.3.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.graalvm.js</groupId>
|
||
<artifactId>js</artifactId>
|
||
<version>22.3.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.graalvm.js</groupId>
|
||
<artifactId>js-scriptengine</artifactId>
|
||
<version>22.3.0</version>
|
||
</dependency>
|
||
|
||
<!-- 测试相关 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.junit.vintage</groupId>
|
||
<artifactId>junit-vintage-engine</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>cn.iocoder.boot</groupId>
|
||
<artifactId>yudao-spring-boot-starter-test</artifactId>
|
||
<version>${revision}</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mockito</groupId>
|
||
<artifactId>mockito-core</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mockito</groupId>
|
||
<artifactId>mockito-junit-jupiter</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
</project>
|