Migrate Spring Boot application from Java 11 to Java 17#12
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
Migrate Spring Boot application from Java 11 to Java 17#12devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
- Update Java version to 17 in build.gradle, CI/CD pipeline, and README - Upgrade Spring Boot from 2.6.3 to 3.2.0 - Update Gradle wrapper from 7.4 to 8.5 for Java 17 support - Update all dependencies for Spring Boot 3.x compatibility: - MyBatis: 2.2.2 → 3.0.3 - Netflix DGS GraphQL: 4.9.21 → 9.1.2 - DGS Codegen: 5.0.6 → 6.2.1 - JWT libraries: 0.11.2 → 0.12.6 - SQLite JDBC: 3.36.0.3 → 3.46.1.3 - Spotless: 6.2.1 → 6.23.3 - rest-assured: 4.5.1 → 5.3.2 - Replace all javax.* imports with jakarta.* (Jakarta EE namespace) - Migrate from Joda-Time to java.time API throughout codebase - Update Spring Security configuration for Spring Boot 3.x API - Update JWT service for jjwt 0.12.x API changes - Update GraphQL exception handlers for DGS 9.x API changes - Fix PageInfo type conversions for DGS framework - Add Groovy dependency resolution strategy - Update test files to use java.time API - Fix JWT test key length for HS512 algorithm requirements All tests passing (69 tests) Co-Authored-By: Numair Baseer <numair.baseer@codeium.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
The v2 version of actions/cache has been deprecated and causes CI failures. Updated to v4 to resolve the deprecation warning and allow CI to pass. Co-Authored-By: Numair Baseer <numair.baseer@codeium.com>
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.
Migrate Spring Boot application from Java 11 to Java 17
Summary
This PR migrates the Spring Boot application from Java 11 to Java 17, which includes upgrading Spring Boot from version 2.6.3 to 3.2.0 and updating all related dependencies. This is a comprehensive migration involving configuration changes, dependency updates, and source code modifications.
Key Changes
Framework & Build Tool Upgrades:
Dependency Updates:
Source Code Migrations:
javax.*imports changed tojakarta.*(exceptjavax.cryptowhich is JCE)DateTimetojava.time.Instantthroughout the codebaseWebSecurityConfigurerAdaptertoSecurityFilterChainbean patternsetSubject→subject,parseClaimsJws→parseSignedClaims, etc.)CompletableFuturefor DGS 9.x compatibilityInstantinstead ofDateTimeInstantusingDateTimeFormatter.ISO_INSTANTCI/CD Updates:
actions/cache@v2→actions/cache@v4Testing
/tagsendpoint)Review & Testing Checklist for Human
This is a high-risk migration involving major framework upgrades and API changes. Please thoroughly test the following:
Recommended Test Plan
./gradlew bootRun/graphiqlNotes
/tagsendpoint was verified to return correct responsesDevin Session: https://app.devin.ai/sessions/d6520948c7944674a82d9cd383e3602d
Requested by: Numair Baseer (numair.baseer@codeium.com) / @numairb97