Skip to content

Commit ae216e6

Browse files
committed
more instructions
1 parent 5c5cb24 commit ae216e6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

reflection-config-generator/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,18 @@ it will automatically configure reflection for `Fruit` props when compiling usin
4242
}
4343
]
4444
```
45+
46+
## Generation reflection to external library jars
47+
As annotation processing only can process source code, if you need to generate a reflection json file to an external
48+
jar, you can do as follows:
49+
50+
Download [reflection-config-generator latest release jar][1] then run something like:
51+
```bash
52+
$ java -cp "your.jar:reflection-config-generator.jar" nativeimage.core.thirdparty.Main com.acme /tmp/tmp.json
53+
54+
generating reflect..., package=com.acme, options=[com.github.dockerjava.api.model, /tmp/tmp.json]
55+
generated!, package=com.acme, objects=148, writtenTo=/tmp/tmp.json
56+
```
57+
58+
[1]: https://github.com/mageddo-projects/annotation-processing-tools/releases?q=reflection-config-generator&expanded=true
59+

0 commit comments

Comments
 (0)