File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
reflection-config-generator Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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+
You can’t perform that action at this time.
0 commit comments