Migrate catalog-spring-boot from Spring Boot 2.1.6 to Spring Boot 3.2.5#8
Open
blues-man wants to merge 2 commits into
Open
Migrate catalog-spring-boot from Spring Boot 2.1.6 to Spring Boot 3.2.5#8blues-man wants to merge 2 commits into
blues-man wants to merge 2 commits into
Conversation
Applies all migration rules from session mig-20260525-sb2to3:
RULE-001: Upgrade Java source/target from 11 to 17
RULE-002: Migrate javax.persistence to jakarta.persistence in Product.java
RULE-003: Replace Red Hat BOM (me.snowdrop:spring-boot-bom) with
spring-boot-starter-parent:3.2.5 parent POM
RULE-004: Remove explicit spring-boot-maven-plugin version (inherited from parent)
RULE-005: Replace spring-cloud-starter-kubernetes-config with
spring-cloud-starter-kubernetes-fabric8-config and Spring Cloud
BOM 2023.0.1
RULE-006: Update H2 URL for H2 2.x compatibility (add DB_CLOSE_DELAY=-1)
RULE-007: Update maven-compiler-plugin from 3.6.1 to 3.11.0
RULE-008: Update kubernetes-maven-plugin from 1.1.1 to 1.16.2
RULE-009: Expose actuator endpoints (health, info, metrics) in application.properties
RULE-010: Refactor CatalogController from field injection to constructor injection
Verified: mvn clean package -DskipTests BUILD SUCCESS
Verified: /actuator/health returns UP with H2 database UP
Verified: /api/catalog returns all 9 products from import.sql
Closes #3, #4, #5, #6, #7
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
All 5 stories completed. Pull request #8 created. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
This PR completes the full automated migration of
catalog-spring-bootfrom Spring Boot 2.1.6 (Red Hat BOM) to Spring Boot 3.2.5 (community upstream), sessionmig-20260525-sb2to3.spring-boot-starter-parent:3.2.5and removed vendor-specific repositoriesjavax.persistence→jakarta.persistencefor Jakarta EE 9+ compliance2023.0.1BOMCatalogControllerChanges by File
pom.xmlsrc/main/java/.../Product.javasrc/main/java/.../CatalogController.javasrc/main/resources/application.propertiesArtifacts added:
analysis-report.json,migration-plan.json,rule.md,tasks.mdVerification Results
mvn clean package -DskipTests: BUILD SUCCESS (3.3s, Java 21 runtime)GET /actuator/health:{"status":"UP"}- H2 database UPGET /api/catalog: Returns all 9 products fromimport.sqlLinked Issues
Closes #3 (STORY-001: pom.xml update)
Closes #4 (STORY-002: javax→jakarta)
Closes #5 (STORY-003: application config)
Closes #6 (STORY-004: constructor injection)
Closes #7 (STORY-005: build verification)
Test plan
mvn clean package -DskipTestscompletes successfullyjava -jar target/catalog-1.0-SNAPSHOT.jar --spring.cloud.kubernetes.enabled=falsestarts without errorscurl http://localhost:8080/actuator/healthreturns{"status":"UP"}curl http://localhost:8080/api/catalogreturns JSON array with 9 productsjavax.persistencereferences remain in sourceGenerated by migration session
mig-20260525-sb2to3Generated with Claude Code