This skill documents how to build GraalVM native images for Java applications using the Gradle Native Build Tools plugin. It explains required environment settings (JAVA_HOME), sample plugin configuration for Groovy and Kotlin DSLs, and common Gradle tasks to compile, run, and test native images. It also highlights troubleshooting areas such as missing reachability metadata, class initialization/linking errors, and native testing considerations.
Use this skill when you need to produce a native executable from a JVM app for faster startup and lower resource usage, when configuring Gradle builds for native-image, or when diagnosing native-image build or runtime failures (reflection/resource registrations, linking, memory). Useful during CI builds, local profiling, and packaging for production.
nativeCompile, nativeRun, nativeTest).Best for agents with access to build tooling and shell/CI environments (CI automation, code-focused assistants like Copilot/Claude Code) that can suggest or validate Gradle configuration and native-image options.
This skill has not been reviewed by our automated audit pipeline yet.