要点
Automate GraalVM native image configuration, build, and error resolution for Java applications.
- Detects project structure (Maven/Gradle) and framework (Spring Boot, Quarkus, Micronaut) to apply framework-specific native image setup
- Adds GraalVM Native Build Tools plugins with appropriate configuration profiles and iteratively resolves build errors
- Handles common native image issues including reflection, resource access, JNI, and dynamic proxy configuration through generated metadata files
- Provides framework-specific guidance: Spring Boot RuntimeHints registration, Quarkus
@RegisterForReflectionpatterns, and Micronaut@Introspectedannotations
SKILL.md
GraalVM Native Image Support
Single source of truth for adding GraalVM Native Image to a Java project, whatever the framework. Work iteratively: configure, build, read the error, fix, rebuild, until the native build succeeds and the executable runs correctly.
Detail lives in references/; load only what the project needs:
| Topic | File |
|---|---|
| Maven / Gradle native plugin setup | references/build-tools.md |
| Reachability metadata and tracing agent | references/reachability-metadata.md |
| Common build/runtime errors and fixes | references/troubleshooting.md |
Spring Boot (AOT, -Pnative, nativeCompile, build-image) |
references/spring-boot.md |
| Quarkus | quarkus-native-and-container skill (hand off); short pointer in references/quarkus.md |
| Micronaut | references/micronaut.md |