2 ms·
Spring and GraalVM and Kotlin = Interesting Results
- rzzzt 6y agoHow many failed builds did it take to fill reflect-config.json completely, one for each object in the array? Can this step be streamlined somehow?
- nfrankel 6y agoThat's a great question! In the context of this post, I wanted to check how much work the Spring team had done so I did the trial-error-fix process on purpose. On real-world applications, I suggest you use the Java agent that comes from GraalVM and go into every corner of your application. At runtime, the agent will record every interaction and at shutdown, will write all necessary configuration files. You can check the documentation here: https://www.graalvm.org/reference-manual/native-image/BuildConfiguration/#assisted-configuration-of-native-image-builds https://www.graalvm.org/reference-manual/native-image/BuildC...