Skip to content

Addressing deprecations in RestTemplateBuilder#667

Merged
timtebeek merged 7 commits intoopenrewrite:mainfrom
riccardoforzan:feature/spring-3.4-upgrade
Jan 15, 2025
Merged

Addressing deprecations in RestTemplateBuilder#667
timtebeek merged 7 commits intoopenrewrite:mainfrom
riccardoforzan:feature/spring-3.4-upgrade

Conversation

@riccardoforzan
Copy link
Contributor

What's changed?

This PR adds a recipe for replacing some deprecation in RestTemplateBuilder

What's your motivation?

Anything in particular you'd like reviewers to focus on?

This PR does not address the deprecation of requestFactory that needs to be migrated to requestFactoryBuilder

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

timtebeek and others added 3 commits January 15, 2025 22:47
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@timtebeek
Copy link
Member

Thanks for getting this started @riccardoforzan ; Seems like we are nearly there, but perhaps need to start a 3_4 suite of tests, and add the required dependencies there.

val springBootVersions: List<String> = listOf("1_5", "2_1", "2_2", "2_3", "2_4", "2_5", "2_6", "2_7", "3_0", "3_2", "3_3")

Copy link
Member

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

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

Great to see! Thanks for helping out with these RestTemplateBuilder migration steps. 🙏🏻

@timtebeek timtebeek merged commit b83c747 into openrewrite:main Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

boot-3.4 recipe Recipe requested

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants

Comments