GraalVM Integration
For some advanced scenarios, you may want to interactive with the native image generation process using Java code. This can be done using APIs provided by GraalVM SDK.
GraalVM SDK
To use GraalVM SDK, dependencies need to be added to your project first. For Maven projects, the following dependencies should be added to pom.xml
.
<dependencies>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
<version>${graalvm.version}</version>
</dependency>
<dependency>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>svm</artifactId>
<version>${graalvm.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
You can get all the GraalVM SDK versions from Maven repository.