Update java version to 21#133
Merged
campos20 merged 7 commits intothewca:mainfrom Apr 18, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR updates the project to use Java 21 while transitioning from the deprecated javax.validation to jakarta.validation packages. Key changes include:
- Migration of javax.validation imports to jakarta.validation in multiple controller and configuration files.
- Updates to GitHub Actions workflows for building, testing, and deploying using JDK 21 with updated action versions.
- Small stylistic improvements in client components and API endpoint concatenations.
Reviewed Changes
Copilot reviewed 43 out of 51 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| server/src/main/java/org/worldcubeassociation/statistics/controller/SumOfRanksController.java | Updated validation import to jakarta.validation for Java 21 compatibility. |
| server/src/main/java/org/worldcubeassociation/statistics/controller/StatisticsController.java | Updated validation import to jakarta.validation. |
| server/src/main/java/org/worldcubeassociation/statistics/controller/DatabaseQueryController.java | Updated validation import to jakarta.validation. |
| server/src/main/java/org/worldcubeassociation/statistics/controller/BestEverRanksController.java | Updated validation import to jakarta.validation. |
| server/src/main/java/org/worldcubeassociation/statistics/config/Swagger2Config.java | Reformatted license declaration without changing functionality. |
| server/src/main/java/org/worldcubeassociation/statistics/config/GlobalException.java | Updated validation exception imports to jakarta.validation. |
| server/src/main/java/org/worldcubeassociation/statistics/StatisticsApplication.java | Switched to jakarta.annotation.PostConstruct and removed the old javax version. |
| client/src/main/components/Footer.tsx | Simplified the Contact link formatting. |
| client/src/main/api/DatabaseQueryApi.ts | Changed base URL concatenation to include explicit slashes for endpoint paths. |
| .github/workflows/backtest.yaml | Configured working-directory, updated cache and JDK version to 21 along with minor path adjustments. |
| .github/workflows/backdeploy.yaml | Updated checkout, cache, and JDK setup to align with the JDK 21 migration and adjusted file paths. |
Files not reviewed (8)
- server/Dockerfile: Language not supported
- server/build.gradle: Language not supported
- server/build.gradle.kts: Language not supported
- server/gradle/wrapper/gradle-wrapper.properties: Language not supported
- server/gradlew: Language not supported
- server/gradlew.bat: Language not supported
- server/settings.gradle: Language not supported
- server/settings.gradle.kts: Language not supported
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.
No description provided.