Upgrade Spring Boot 2.0.2 → 2.7.18 with Java 17 support#30
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Upgrade Spring Boot 2.0.2 → 2.7.18 with Java 17 support#30devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Phase 1 - Build config updates: - pom.xml: Spring Boot 2.0.2.RELEASE → 2.7.18, Java 1.8 → 17, removed spring-boot-properties-migrator - build.gradle: Plugin version 2.7.18, sourceCompatibility/targetCompatibility 17, baseName → archiveBaseName, compile → implementation, testCompile → testImplementation - gradle-wrapper.properties: Gradle 4.6 → 7.6.4 (required for Java 17) - gs-spring-boot.iml: JDK_1_8 → JDK_17 Phase 2 - Application code fixes: - H2 SQL syntax: 'DROP TABLE customers IF EXISTS' → 'DROP TABLE IF EXISTS customers' (H2 2.x standard SQL) - JdbcTemplate.query(): Migrated from deprecated Object[] parameter style to varargs - Removed defunct gturnquist-quoters.cfapps.io REST client calls (endpoint no longer available) Co-Authored-By: sophia.lyssy <sophia.lyssy@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:
|
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 2.7.18 (Java 17). Spring Boot 2.7.x is the last 2.x line and supports Java 17 without requiring the javax→jakarta migration.
Phase 1 — Build config updates
pom.xmlspring-boot-properties-migratordependencybuild.gradlesourceCompatibility/targetCompatibility→ 17,baseName→archiveBaseName,compile→implementation,testCompile→testImplementationgradle/wrapper/gradle-wrapper.propertiesgs-spring-boot.imlJDK_1_8→JDK_17Phase 2 — Application code fixes
Application.javaDROP TABLE customers IF EXISTS→DROP TABLE IF EXISTS customers(H2 2.x standard SQL)Application.javaJdbcTemplate.query(): migrated from deprecatednew Object[]{}parameter style to varargs (RowMapper before bind params)Application.javagturnquist-quoters.cfapps.ioREST client calls and theCommandLineRunnerbean that used themPhase 3 — Verification
./mvnw clean package) succeeds with JDK 17Review & Testing Checklist for Human
./mvnw spring-boot:runwith JDK 17 and verify app starts without errorsGET /,GET /datetime,GET /topic,GET /topic/string/operation,GET /topic/file/operation./gradlew clean build(Gradle wrapper updated to 7.6.4)Notes
RestTemplatebean is retained for potential future use, but the defunctCommandLineRunnerbean that calledgturnquist-quoters.cfapps.iohas been removed.QuoteandValuemodel classes remain in the codebase but are no longer called at startup.Link to Devin session: https://app.devin.ai/sessions/d78092399dc347c5a22a7fa06709ed32
Requested by: @sophialyssy-sys
Devin Review