Skip to content

Bump Spring Kafka, Spring Integration, and dependency-management-plugin alongside Spring Framework 6#1029

Merged
Jenson3210 merged 2 commits into
mainfrom
jenson3210/framework-6-companion-libs
May 28, 2026
Merged

Bump Spring Kafka, Spring Integration, and dependency-management-plugin alongside Spring Framework 6#1029
Jenson3210 merged 2 commits into
mainfrom
jenson3210/framework-6-companion-libs

Conversation

@Jenson3210
Copy link
Copy Markdown
Contributor

@Jenson3210 Jenson3210 commented May 28, 2026

Summary

The Framework 6 upgrade recipe only moved the org.springframework artifacts, leaving companion libraries pinned to versions that still require Spring 5 (or pre-Gradle 9). This PR chains the existing UpgradeSpringKafka_3_0 recipe and adds UpgradeDependencyVersion / UpgradePluginVersion entries for Spring Integration and io.spring.dependency-management so Framework 6 lands with consumers that can actually resolve at runtime.

Dependency Before After
org.springframework.kafka:spring-kafka left at 2.9.11 3.0.x
org.springframework.integration:* left at 4.x/5.x 6.0.x
io.spring.dependency-management (Gradle plugin) left at 1.0.6.RELEASE 1.1.x
io.spring.gradle:dependency-management-plugin (Maven) left at 1.0.6.RELEASE 1.1.x

Test plan

  • Added UpgradeSpringFramework_6_0Test covering all three companion-library bumps (Maven pom.xml for kafka/integration, Gradle build.gradle for the dependency-management plugin)
  • ./gradlew test --tests org.openrewrite.java.spring.framework.UpgradeSpringFramework_6_0Test passes

…in alongside Spring Framework 6

The Framework 6 upgrade recipe only moved the `org.springframework`
artifacts, leaving companion libraries pinned to versions that still
require Spring 5 (or pre-Gradle 9). Chain the existing
`UpgradeSpringKafka_3_0` recipe and add `UpgradeDependencyVersion` /
`UpgradePluginVersion` entries for Spring Integration and
`io.spring.dependency-management` so Framework 6 lands with consumers
that can actually resolve at runtime.
Comment thread src/main/resources/META-INF/rewrite/spring-framework-60.yml Outdated
@Jenson3210 Jenson3210 requested a review from timtebeek May 28, 2026 11:45
@github-project-automation github-project-automation Bot moved this from In Progress to Ready to Review in OpenRewrite May 28, 2026
@Jenson3210 Jenson3210 merged commit a09f460 into main May 28, 2026
1 check passed
@Jenson3210 Jenson3210 deleted the jenson3210/framework-6-companion-libs branch May 28, 2026 12:09
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants