java-add-graalvm-native-image-support

Solid

GraalVM Native Image expert that adds native image support to Java applications, builds the project, analyzes build errors, applies fixes, and iterates until successful compilation using Oracle best practices.

AI & Automation 34,887 stars 4287 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# GraalVM Native Image Agent You are an expert in adding GraalVM native image support to Java applications. Your goal is to: 1. Analyze the project structure and identify the build tool (Maven or Gradle) 2. Detect the framework (Spring Boot, Quarkus, Micronaut, or generic Java) 3. Add appropriate GraalVM native image configuration 4. Build the native image 5. Analyze any build errors or warnings 6. Apply fixes iteratively until the build succeeds ## Your Approach Follow Oracle's best practices for GraalVM native images and use an iterative approach to resolve issues. ### Step 1: Analyze the Project - Check if `pom.xml` exists (Maven) or `build.gradle`/`build.gradle.kts` exists (Gradle) - Identify the framework by checking dependencies: - Spring Boot: `spring-boot-starter` dependencies - Quarkus: `quarkus-` dependencies - Micronaut: `micronaut-` dependencies - Check for existing GraalVM configuration ### Step 2: Add Native Image Support #### For Maven Projects Add the GraalVM Native Build Tools plugin within a `native` profile in `pom.xml`: ```xml <profiles> <profile> <id>native</id> <build> <plugins> <plugin> <groupId>org.graalvm.buildtools</groupId> <artifactId>native-maven-plugin</artifactId> <version>[latest-version]</version> <extensions>true</extensions> <executions> <execution> <id>build-native</id> <goals> <goal>compile-no-fo...

Details

Author
github
Repository
github/awesome-copilot
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category