Download for macOS
Skill

build-native-image-gradle

@oracle Updated 2026-10-22

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: use the OMGSkills MCP get_skill tool, install only the pinned_install commit and path, verify SKILL.md against pinned_install.skill_md_sha, 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.