Skip to content

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
masterfrom
devin/1778862723-upgrade-spring-boot-2.7-java17
Open

Upgrade Spring Boot 2.0.2 → 2.7.18 and Java 8 → 17#29
devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1778862723-upgrade-spring-boot-2.7-java17

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot commented May 15, 2026

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

File Change
pom.xml Spring Boot 2.0.2.RELEASE2.7.18, Java 1.817, removed spring-boot-properties-migrator dependency
build.gradle Plugin 2.0.2.RELEASE2.7.18, Java 1.817, baseNamearchiveBaseName, compile/testCompileimplementation/testImplementation
gradle/wrapper/gradle-wrapper.properties Gradle 4.67.6.4 (Java 17 requires Gradle 7.3+)
gs-spring-boot.iml JDK_1_8JDK_17

Phase 2 — Application code fixes

File Change
Application.java Fixed H2 2.x SQL syntax: DROP TABLE customers IF EXISTSDROP TABLE IF EXISTS customers
Application.java Fixed deprecated jdbcTemplate.query() — moved new Object[]{"Josh"} to varargs after RowMapper
Application.java Removed defunct gturnquist-quoters.cfapps.io REST client calls and associated unused imports (Quote, RestTemplate, RestTemplateBuilder, Bean)

Phase 3 — Verification

  • ./mvnw clean package builds successfully with JDK 17

Review & Testing Checklist for Human

  • Run ./mvnw clean package (or ./gradlew clean build) with JDK 17 and confirm BUILD SUCCESS
  • Run ./mvnw spring-boot:run and verify these endpoints respond:
    • GET / (GreetingController)
    • GET /datetime (HelloController)
    • GET /topic (TopicController)
    • GET /topic/string/operation
    • GET /topic/file/operation
  • Check startup logs for "Creating tables" and customer query output (H2 database initialization)

Notes

  • The defunct gturnquist-quoters.cfapps.io URL was removed entirely (both the main() call and the CommandLineRunner bean) rather than replaced with a substitute API, since it was only a demo feature.
  • The project is now ready for a future Spring Boot 3.x upgrade (Phase 4) which would require javax→jakarta namespace changes in transitive dependencies.

Link to Devin session: https://app.devin.ai/sessions/e58408cfe4254a67b89e0160b727a33a
Requested by: @sophialyssy-sys


Devin Review

Status Commit
⚪ Not started

Run Devin Review

💡 Connect your GitHub account to enable automatic code reviews.

Open in Devin Review (Staging)

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>
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Copy Markdown
Author

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants