Skip to content

Commit 88c563f

Browse files
authored
Merge pull request #522 from fugerit-org/521-chore-no-native-metadata-for-fj-doc-base-json-and-fj-doc-base-yaml
521 chore no native metadata for fj doc base json and fj doc base yaml
2 parents c698b9f + a250b27 commit 88c563f

File tree

10 files changed

+1383
-1
lines changed

10 files changed

+1383
-1
lines changed

fj-doc-base-json/pom.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,47 @@
2525
</properties>
2626

2727
<build>
28+
29+
<plugins>
30+
31+
<plugin>
32+
<groupId>org.fugerit.java</groupId>
33+
<artifactId>native-helper-maven-plugin</artifactId>
34+
<version>${native-helper-maven-plugin-version}</version>
35+
<executions>
36+
<execution>
37+
<id>generate-native-configuration</id>
38+
<phase>prepare-package</phase>
39+
<goals>
40+
<goal>generate</goal>
41+
</goals>
42+
<configuration>
43+
<createParentDirectory>true</createParentDirectory>
44+
<nativeHelperConfigPath>${project.basedir}/src/main/config/native-helper-config.yaml</nativeHelperConfigPath>
45+
<reflectConfigJsonOutputPath>${project.build.directory}/generated-resources/reflect-config-custom.json</reflectConfigJsonOutputPath>
46+
<warnOnError>false</warnOnError>
47+
</configuration>
48+
</execution>
49+
<execution>
50+
<id>merge-native-configuration</id>
51+
<phase>prepare-package</phase>
52+
<goals>
53+
<goal>merge</goal>
54+
</goals>
55+
<configuration>
56+
<reflectConfigJsonFiles>
57+
<reflectConfigJsonFile>${project.build.directory}/generated-resources/reflect-config-custom.json</reflectConfigJsonFile>
58+
<reflectConfigJsonFile>${project.basedir}/src/main/config/reflect-config-nhg.json</reflectConfigJsonFile>
59+
</reflectConfigJsonFiles>
60+
<reflectConfigJsonOutputPath>${project.basedir}/src/main/resources/META-INF/native-image/${project.groupId}/${project.artifactId}/reflect-config.json</reflectConfigJsonOutputPath>
61+
<createParentDirectory>true</createParentDirectory>
62+
<warnOnError>false</warnOnError>
63+
</configuration>
64+
</execution>
65+
</executions>
66+
</plugin>
67+
68+
</plugins>
2869

2970
</build>
3071

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#Sample native helper config file
2+
---
3+
generate:
4+
- packageName: org.fugerit.java.doc.json.typehandler
5+
mode: all
6+
typeReachable: org.fugerit.java.doc.base.facade.DocFacadeSource
7+
- packageName: org.fugerit.java.doc.json.parse
8+
mode: all
9+
typeReachable: org.fugerit.java.doc.base.facade.DocFacadeSource
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"name": "java.lang.Class",
4+
"methods": [
5+
{ "name": "getSimpleName", "parameterTypes": [] },
6+
{ "name": "getName", "parameterTypes": [] },
7+
{ "name": "getCanonicalName", "parameterTypes": [] }
8+
]
9+
}
10+
]

0 commit comments

Comments
 (0)