Skip to content

Conversation

@jdubois
Copy link
Contributor

@jdubois jdubois commented Dec 9, 2025

This fixes #447 from @SandraAhlgrimm

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • My contribution adds a new instruction, prompt, or chat mode file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, or chat mode with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.

Description

Add support for GraalVM native image builds for Java projects.


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New chat mode file.
  • New collection file.
  • Update to existing instruction, prompt, chat mode, or collection.
  • Other (please specify):

Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a comprehensive prompt for adding GraalVM Native Image support to Java applications. The prompt provides an expert-level, iterative workflow for analyzing projects, configuring native image builds, resolving errors, and verifying native executables across multiple frameworks (Spring Boot, Quarkus, Micronaut).

Key changes:

  • New prompt file providing step-by-step GraalVM native image configuration guidance
  • Framework-specific instructions for Maven and Gradle projects
  • Detailed troubleshooting and error resolution strategies for common native image issues
  • Comprehensive examples for reflection, resource, JNI, and proxy configurations

Copy link
Contributor

@aaronpowell aaronpowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file needs to have a .prompt.md suffix so that it's treated as a prompt file and then run npm start to generate the README changes.

There's also a number of other comments from Copilot, I'm unsure how many are correct though

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@aaronpowell aaronpowell merged commit 14285a2 into github:main Dec 10, 2025
8 checks passed
@SandraAhlgrimm
Copy link

awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an instruction to compile to Java Native with GraalVM

3 participants