commit 534bed46aa5d8ee61ab567b4677207684f29233f Author: Danny McClanahan <1305167+cosmicexplorer@users.noreply.github.com> Date: Mon Jul 15 12:59:58 2019 -0700 embed a graal native-image configuration inside the zinc wrapper (#7506) ### Problem [`native-image`](https://www.graalvm.org/docs/reference-manual/aot-compilation/) is a tool from the [Graal](https://github.com/oracle/graal) project which can compile jvm bytecode to a native executable with very short startup time. As of [1.0.0rc13](https://github.com/oracle/graal/releases), `native-image` became able to use special files in `META-INF/` to configure the command-line arguments and json configuration it needed to run, described in https://medium.com/graalvm/simplifying-native-image-generation-with-maven-plugin-and-embeddable-configuration-d5b283b92f57. This allows us to publish a zinc artifact which works the exact same when invoked by `java`, but can also be made into a `native-image` without any further configuration. ### Solution - Add the reflective/resource access json files into `META-INF/` in the zinc jar, as well as substitutions. - Add descriptive readmes linking to external documentation and blog posts about Graal which were used to construct the configuration being added. ### Result #8036 (once the artifacts from this PR are published to maven central) will be able to remove an extra git clone from its script which does all of the configuration automatically! .../native-image-substitutions/Substitutions.java | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+)