Skip to content

Commit

Permalink
✨ mica-mqtt-example 更新 graalvm 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xunhuan committed Nov 22, 2023
1 parent 2d5fc49 commit f41f1f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
30 changes: 0 additions & 30 deletions example/mica-mqtt-example/graalvm/reflect-config.json

This file was deleted.

22 changes: 1 addition & 21 deletions example/mica-mqtt-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</parent>

<properties>
<graalvm.version>22.0.0.2</graalvm.version>
<graalvm.version>23.1.1</graalvm.version>
<mainClass.server>net.dreamlu.iot.mqtt.server.MqttServerTest</mainClass.server>
<mainClass.client>net.dreamlu.iot.mqtt.client.MqttClientTest</mainClass.client>
</properties>
Expand Down Expand Up @@ -49,12 +49,6 @@
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<!-- 非 GraalVM 用 caffeine 2.x 支持 jdk8 -->
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<version>2.9.2</version>
</dependency>
<!-- 非 GraalVM 环境用 tinylog -->
<dependency>
<groupId>org.tinylog</groupId>
Expand Down Expand Up @@ -103,12 +97,6 @@
<profile>
<id>mqtt-server-graal</id>
<dependencies>
<!-- caffeine 3.x 减少反射,对 graalvm 支持更好,最低 JDK11 -->
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<version>3.0.3</version>
</dependency>
<!-- GraalVM 环境使用 jdk log -->
<dependency>
<groupId>org.slf4j</groupId>
Expand Down Expand Up @@ -145,7 +133,6 @@
<buildArgs>
-H:+RemoveSaturatedTypeFlows
--allow-incomplete-classpath
-H:ReflectionConfigurationFiles=../graalvm/reflect-config.json
</buildArgs>
</configuration>
</plugin>
Expand All @@ -155,12 +142,6 @@
<profile>
<id>mqtt-client-graal</id>
<dependencies>
<!-- caffeine 3.x 减少反射,对 graalvm 支持更好,最低 JDK11 -->
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<version>3.0.3</version>
</dependency>
<!-- GraalVM 环境使用 jdk log -->
<dependency>
<groupId>org.slf4j</groupId>
Expand Down Expand Up @@ -197,7 +178,6 @@
<buildArgs>
-H:+RemoveSaturatedTypeFlows
--allow-incomplete-classpath
-H:ReflectionConfigurationFiles=../graalvm/reflect-config.json
</buildArgs>
</configuration>
</plugin>
Expand Down

0 comments on commit f41f1f1

Please sign in to comment.