Upgrade Spring Boot 2.0.2 → 2.7.18 and Java 8 → 11#5
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Upgrade Spring Boot 2.0.2 → 2.7.18 and Java 8 → 11#5devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
- pom.xml: Spring Boot parent 2.7.18, java.version 11, remove spring-boot-properties-migrator - build.gradle: spring-boot-gradle-plugin 2.7.18, sourceCompatibility/targetCompatibility 11, replace deprecated baseName/version with archiveBaseName/archiveVersion, replace compile/testCompile with implementation/testImplementation/runtimeOnly, add spring-boot-starter-jdbc and h2 dependencies - gs-spring-boot.iml: LANGUAGE_LEVEL JDK_11 - src/main/resources/application.properties: H2 MODE=LEGACY for H2 2.x backward compatibility - Regenerate Maven wrapper (3.9.6) and Gradle wrapper (7.6.4) Co-Authored-By: Daniella Grimberg <daniella@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.RELEASE / Java 8 to Spring Boot 2.7.18 / Java 11, including build tool and wrapper updates.
pom.xml: Spring Boot parent → 2.7.18,
java.version→ 11, removedspring-boot-properties-migrator(1.x→2.x migration aid no longer needed).build.gradle: Plugin → 2.7.18,
sourceCompatibility/targetCompatibility→ 11, replaced deprecatedbaseName/versionwitharchiveBaseName/archiveVersion, migratedcompile/testCompiletoimplementation/testImplementation/runtimeOnly, addedspring-boot-starter-jdbcandh2dependencies to match pom.xml.gs-spring-boot.iml:
LANGUAGE_LEVEL→JDK_11.H2 compatibility: Spring Boot 2.7 pulls H2 2.x which has breaking SQL syntax changes. Added
src/main/resources/application.propertieswithspring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;MODE=LEGACYto maintain backward compatibility with the app's H2 1.x SQL (DROP TABLE ... IF EXISTS,SERIALtype).Wrappers: Regenerated Maven wrapper (3.3.9 → 3.9.6, script-only mode) and Gradle wrapper (4.6 → 7.6.4). Old Gradle 4.6 could not run on JDK 11.
Both
./mvnw clean packageand./gradlew clean buildpass on JDK 11.Review & Testing Checklist for Human
./mvnw spring-boot:run(or./gradlew bootRun) and verify H2 table creation + JDBC operations succeed in the startup log — theMODE=LEGACYsetting is the most critical change to validate at runtimeApplication.javacalls an external API (gturnquist-quoters.cfapps.io) at startup that is likely defunct — expect a connection error on boot unrelated to this upgrade. Consider removing or replacing it in a follow-upgs-spring-boot.imlincludesLANGUAGE_LEVEL="JDK_11"(this file is in the diff but could be easy to miss)Notes
pom.xmluses<packaging>pom</packaging>which is unusual for a Spring Boot app (it skips JAR packaging in Maven). This is pre-existing and unrelated to this PR.Link to Devin session: https://app.devin.ai/sessions/cc722fb485634c51a38c9cec3f0761a3
Requested by: @danigrim