feat: Decouple GraalVM version from Java version in native image build - #397
Merged
Merged
Conversation
…r native image Adds a dedicated graalvm-version input (default 25.0) so the GraalVM release used by setup-graalvm is pinned independently of java-version, matching the X.Y version format the action expects for GraalVM 25+. Also switches the native image Maven build from `verify` to `package` since tests and verify-phase checks already run in the test job. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
alexandruMarjina
approved these changes
Sep 8, 2026
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
graalvm-versioninput (default25.0) so the GraalVM release used bygraalvm/setup-graalvmis pinned independently ofjava-version, matching theX.Yversion format the action expects for GraalVM 25+ (previouslyjava-version's major-version format, e.g.'25', was being passed into theversionfield).verifytopackage(-Dpackaging=native-image -DskipTests), since tests and verify-phase checks already run in thetestjob — avoids re-executing that work during native image packaging.Test plan
build-imagejob resolves and installs GraalVM25.0successfully for bothgraalvmandgraalvm-communitydistributionsmvn package -Dpackaging=native-image -DskipTestsstill produces the native image binary (i.e. the native-image plugin binds at thepackagephase in callerpom.xmls)hiiretail-price-specification-stream-processor(the current consumer of this reusable workflow) before moving thev0tag