1
0
mirror of synced 2026-02-24 15:14:13 +08:00

🆕 #1392 增加weixin-graal模块,配合graal以产生native-image配置。

目的:解决native-image中gson功能无效的问题。

可以通过项目的 native-image Profile 来启用:
mvn -P native-image -Dmaven.test.skip=true clean source:jar install

编译时会在各包中增加2个文件:
META-INF/native-image/.../reflection-config.json
META-INF/native-image/.../native-image.properties
This commit is contained in:
outersky
2020-01-31 21:27:02 +08:00
committed by GitHub
parent ccb25345ff
commit e9efa900a9
10 changed files with 413 additions and 9 deletions

View File

@@ -99,6 +99,7 @@
</scm>
<modules>
<module>weixin-graal</module>
<module>weixin-java-common</module>
<module>weixin-java-cp</module>
<module>weixin-java-mp</module>
@@ -331,6 +332,14 @@
</plugins>
</build>
</profile>
<profile>
<id>native-image</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
</profile>
</profiles>
<build>