Align GitHub Actions build JDK with project Java target (21)#1
Open
sayednowshad with Copilot wants to merge 2 commits into
Open
Align GitHub Actions build JDK with project Java target (21)#1sayednowshad with Copilot wants to merge 2 commits into
sayednowshad with Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job build
Align GitHub Actions build JDK with project Java target (21)
Jul 26, 2026
sayednowshad
marked this pull request as ready for review
July 26, 2026 16:17
There was a problem hiding this comment.
Pull request overview
Updates the GitHub Actions Maven workflow to use Java 21 so CI matches the project’s Maven java.version target and can compile successfully.
Changes:
- Switched
actions/setup-javafrom JDK 17 to JDK 21 in thebuildjob. - Updated the step name to reflect the new JDK version.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
22
to
26
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up JDK 17 | ||
| - name: Set up JDK 21 | ||
| uses: actions/setup-java@v4 | ||
| with: |
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.
The
buildGitHub Actions job fails because CI compiles with JDK 17 while the project is configured for Java 21 inpom.xml. This PR updates the workflow runtime to match the project target so Maven can compile successfully.Root cause
actions/setup-javawithjava-version: '17'release 21via<java.version>21</java.version>Change
.github/workflows/maven.ymlto use Temurin JDK 21 in thebuildjob.Resulting config alignment