Relative Content

Tag Archive for springspring-bootgradlegraalvmgraalvm-native-image

How to configure Gradle to initialize specific modules at runtime when generating a native image with GraalVM?

I am trying to generate a native image with GraalVM using the graalvmNative plugin in Gradle. With simple projects, it works fine when I just apply the org.graalvm.buildtools plugin. However, when I need to add other dependencies like netty-transport-4.1.109.Final and netty-resolver-4.1.109.Final, I get stuck in a loop of tracing and setting individual classes to initialize at runtime, as shown in the following Gradle configuration: