Upgrade to Spring Boot 3.4.5 and Java 21#17
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Conversation
- Update Spring Boot parent from 2.0.2.RELEASE to 3.4.5 - Update Java version from 1.8 to 21 - Remove spring-boot-properties-migrator dependency (no longer needed) - Fix packaging from pom to jar for proper compilation - Update build.gradle: plugin version, Java 21, compile->implementation - Update Gradle wrapper from 4.6 to 8.12 - Update Maven wrapper from 3.3.9 to 3.9.9 - Fix H2 SQL syntax: DROP TABLE IF EXISTS customers - Remove defunct REST API calls (gturnquist-quoters.cfapps.io) - Remove unused RestTemplate, Quote imports and beans - Update README with Java 21 and Spring Boot 3.4.5 requirements Co-Authored-By: Jerry Oliphant <jerry.oliphant@cognition.ai>
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:
|
Author
Testing ResultsBuilt from source with Maven + Java 21, started the jar, verified all REST endpoints via curl. All 9 tests passed. Test Results (9/9 passed)
Startup log verification
|
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
Upgrades the project from Spring Boot 2.0.2 / Java 8 to Spring Boot 3.4.5 / Java 21, along with build tool and code fixes required for compatibility.
Changes
Build configuration:
pom.xml: Spring Boot parent 2.0.2.RELEASE → 3.4.5, Java 1.8 → 21, removedspring-boot-properties-migratordependency, fixed packaging frompomtojarbuild.gradle: Plugin version 2.0.2.RELEASE → 3.4.5, Java 1.8 → 21,compile/testCompile→implementation/testImplementation, addedspring-boot-starter-jdbcandh2dependenciesCode fixes:
DROP TABLE customers IF EXISTS→DROP TABLE IF EXISTS customers(H2 2.x compatibility)gturnquist-quoters.cfapps.io(URL no longer available)RestTemplatebean,CommandLineRunnerrunbean, and related imports (Quote,RestTemplateBuilder,RestTemplate,Bean)CommandLineRunnerviarun(String... args)method retainedDocumentation:
Review & Testing Checklist for Human
./mvnw clean package— verify compilation succeeds with Java 21java -jar target/gs-spring-boot-0.1.0.jarand verify endpoints:/,/topic,/datetime,/topic/string/operation,/topic/file/operationNotes
pom.xmlpackaging was changed frompomtojar— the originalpompackaging prevented Maven from compiling sources. This was likely a pre-existing issue./,/topic,/datetime,/topic/string/operation,/topic/file/operationLink to Devin session: https://app.devin.ai/sessions/3bbe8ad46c3a4034a0678d19dc387d03
Requested by: @jerryoliphant-cog
Devin Review