Upgrade Spring Boot 2.0.2 → 2.7.18 and Java 8 → 17#29
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Upgrade Spring Boot 2.0.2 → 2.7.18 and Java 8 → 17#29devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Phase 1 - Build configuration: - pom.xml: Spring Boot 2.7.18, Java 17, remove spring-boot-properties-migrator - build.gradle: Spring Boot 2.7.18, Java 17, baseName→archiveBaseName, compile→implementation - gradle-wrapper.properties: Gradle 4.6 → 7.6.4 - gs-spring-boot.iml: JDK_1_8 → JDK_17 Phase 2 - Application code fixes: - Fix H2 2.x SQL syntax: DROP TABLE customers IF EXISTS → DROP TABLE IF EXISTS customers - Fix deprecated jdbcTemplate.query() parameter order (RowMapper before varargs) - Remove defunct gturnquist-quoters.cfapps.io REST client calls and unused imports 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 configuration
pom.xml2.0.2.RELEASE→2.7.18, Java1.8→17, removedspring-boot-properties-migratordependencybuild.gradle2.0.2.RELEASE→2.7.18, Java1.8→17,baseName→archiveBaseName,compile/testCompile→implementation/testImplementationgradle/wrapper/gradle-wrapper.properties4.6→7.6.4(Java 17 requires Gradle 7.3+)gs-spring-boot.imlJDK_1_8→JDK_17Phase 2 — Application code fixes
Application.javaDROP TABLE customers IF EXISTS→DROP TABLE IF EXISTS customersApplication.javajdbcTemplate.query()— movednew Object[]{"Josh"}to varargs after RowMapperApplication.javagturnquist-quoters.cfapps.ioREST client calls and associated unused imports (Quote,RestTemplate,RestTemplateBuilder,Bean)Phase 3 — Verification
./mvnw clean packagebuilds successfully with JDK 17Review & Testing Checklist for Human
./mvnw clean package(or./gradlew clean build) with JDK 17 and confirm BUILD SUCCESS./mvnw spring-boot:runand verify these endpoints respond:GET /(GreetingController)GET /datetime(HelloController)GET /topic(TopicController)GET /topic/string/operationGET /topic/file/operationNotes
gturnquist-quoters.cfapps.ioURL was removed entirely (both themain()call and theCommandLineRunnerbean) rather than replaced with a substitute API, since it was only a demo feature.Link to Devin session: https://app.devin.ai/sessions/e58408cfe4254a67b89e0160b727a33a
Requested by: @sophialyssy-sys
Devin Review