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.
Documentation-only skill for building GraalVM native images with Gradle. Covers prerequisites, plugin setup (Groovy and Kotlin DSL), build/run/test commands, and links to reference docs for troubleshooting, testing, and reachability metadata. No scripts bundled — purely instructional. Clean, no security concerns.
Pure documentation skill from the official Oracle/graal repo. Well-structured with good progressive disclosure via references/. Niche but solid for its target audience.