# build-native-image-gradle

> Claude/Codex skill by [@oracle](https://omgskills.com/library/oracle/index.md) · 22k stars · 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.

Tags: aot, compiler, graalvm, java

## Install

```sh
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.

## Links

- HTML page: https://omgskills.com/skills/oracle/graal/build-native-image-gradle/
- GitHub: https://github.com/oracle/graal
- Author: [@oracle](https://omgskills.com/library/oracle/index.md)

## More skills by this author

- [apex](https://omgskills.com/skills/oracle/skills/apex/index.md) — Oracle APEX skills for Oracle APEX application development.
   - [@oracle](https://omgskills.com/library/oracle/index.md) · 893 stars
- [db](https://omgskills.com/skills/oracle/skills/db/index.md) — Oracle Database guidance for SQL, PL/SQL, SQLcl, ORDS, Oracle Vector SDK, administration, app development, performance,...
   - [@oracle](https://omgskills.com/library/oracle/index.md) · 893 stars
- [netsuite-ai-connector-instructions](https://omgskills.com/skills/oracle/netsuite-suitecloud-sdk/packages/agent-skills/netsuite-ai-connector-instructions/index.md) — NetSuite Intelligence skill — teaches AI the correct tool selection order, output formatting, domain knowledge,...
   - [@oracle](https://omgskills.com/library/oracle/index.md) · 358 stars
