Conversation
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Rollback to Java 17 for Elastic Beanstalk release
Roll back to Java 17 for Elastic Beanstalk compatibility
Dec 13, 2025
thomasturrell
approved these changes
Dec 13, 2025
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR rolls back the project from Java 25 to Java 17 to support deployment on Elastic Beanstalk, which is configured for Java 17. The changes ensure compatibility while maintaining all existing functionality.
Key Changes:
- Updated Java version from 25 to 17 across all configuration files
- Refactored switch pattern matching to if-else statements for Java 17 compatibility
- Updated documentation to reflect Java 17 requirement
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pom.xml | Updated java.version property from 25 to 17 |
| xapi-client/src/main/java/dev/learning/xapi/client/StatementHttpMessageWriter.java | Refactored switch pattern matching to Java 17 compatible if-else with instanceof checks |
| .github/workflows/maven_push.yml | Updated GitHub Actions to use JDK 17 |
| .github/workflows/maven_pull_request.yml | Updated GitHub Actions to use JDK 17 |
| .github/workflows/manual-release.yml | Updated GitHub Actions to use JDK 17 |
| .github/workflows/copilot-setup-steps.yml | Updated GitHub Actions to use JDK 17 |
| .github/workflows/codeql.yml | Updated CodeQL workflow to use JDK 17 |
| .devcontainer/devcontainer.json | Updated devcontainer image and runtime configuration to Java 17 |
| README.md | Updated Java version requirement documentation from 25 to 17 |
| CONTRIBUTING.md | Updated prerequisites and installation instructions to reference Java 17 |
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.



Description
Rolls back project from Java 25 to Java 17 for Elastic Beanstalk deployment compatibility.
Changes
Build Configuration
java.versionproperty to 17 in root POMCode Compatibility
StatementHttpMessageWriter.java:Documentation
Checklist:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkstyle.org/opt/hostedtoolcache/CodeQL/2.23.7/x64/codeql/tools/linux64/java/bin/java /opt/hostedtoolcache/CodeQL/2.23.7/x64/codeql/tools/linux64/java/bin/java -jar /opt/hostedtoolcache/CodeQL/2.23.7/x64/codeql/xml/tools/xml-extractor.jar --fileList=/home/REDACTED/work/xapi-java/.codeql-scratch/dbs/java/working/files-to-index11448977796147658271.list --sourceArchiveDir=/home/REDACTED/work/xapi-java/.codeql-scratch/dbs/java/src --outputDir=/home/REDACTED/work/xapi-java/.codeql-scratch/dbs/java/trap/java(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.