Download for MacApple silicon, macOS 14+
Skill

build-native-image-gradle

@oracle Updated 2026-11-13

Build GraalVM native images using Gradle Native Build Tools. Use this skill to build Java applications with Gradle, configure native-image build.gradle settings, or resolve build or runtime issues.

aotcompilergraalvmjava

Install

With your agent

Install OMGSkills skill "oracle/graal:build-native-image-gradle" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/oracle/graal /tmp/graal && ln -s /tmp/graal/docs/reference-manual/native-image/assets/skills/build-native-image-gradle ~/.claude/skills/build-native-image-gradle

From README

Gradle Native Image Build Prerequisites Set JAVAHOME to a GraalVM JDK so Gradle Native Build Tools can find native-image. Do not require GRAALVMHOME in the normal case. Only mention it if the user already relies on it or their environment needs an explicit override. Apply the application, java-library, or java plugin along with org.graalvm.buildtools.native. Plugin Groovy DSL: Kotlin DSL: Build and Run Build or Runtime Failures If the build fails with class initialization, linking errors, memory issues, or the binary behaves incorrectly at runtime, see . Native Testing If nativeTest fails or you need to configure native JUnit tests or custom test suites, see references/testing.md. Missing Reachability Metadata If a build or runtime error reports missing reflection, resource, serialization, or JNI registrations, see references/reachability-metadata.md.