-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recipes to upgrade to Spring Boot 3.4 #642
Comments
I created a recipe for the last point (replacing @MockBean and @SpyBean) which I can contribute. 😃 |
I also found one more point for the list. The RestTemplateBuilder has several deprecations with Spring Boot 3.4 requestFactory -> requestFactoryBuilder @timtebeek Can you add that as one TODO item on the list so it isn't forgotten? 😃 |
I'm thinking about trying to tackle the migration for This would require code like this:
to look like this after the migration:
Is something like that possible with yaml recipes? I'm also struggeling a bit to get the test cases to run for this because the method parameter of setConnectTimeout is
I know that I need to add it to the classpath somehow, but how do i do that for java internal classes like Duration?
|
Thanks for the continued work here @123Haynes ! For the |
Alright. I'll take a look at how refaster recipes work then. 😃 I don't think the missing types are related to 3.3 still on the classpath. The issue is that the method parameter of setConnectTimeout is |
Please note: The MockBean replacment recipe (#646) won't work correctly in all cases, as the new annotation is no full drop-in replacement (see spring-projects/spring-framework#33934). E.g. on types or in TestConfiguration classes, the new annotation has no effect (or even cannot be used). The workarounds are not trivial... |
Also, please check if GoogleCloudPlatform/spring-cloud-gcp#3391 has to be considered. |
Thanks for the comment. I was not aware of that since i don't use Alternatively we could change the recipe so it only replaces the annotation for known, working usecases and ignores everything in I'd probably still keep the current recipe in since even in it's current form the recipe can be used by many people and we can iterate on it. |
For Looking at the broader list of open tasks, I think a recipe to transform type-level usage of |
TBH, that is exactly what I now have done in our project, but I was not quite happy about it. Maybe it is really the best to not to do that replacement at all, but that also could cause deprecation warnings (or even errors, depending on compiler settings) for many... Keeping the old annotation would also "solve" the lacking support for the type-level usage of the new annotation. |
For the warnings the spring boot team provided a workaround to silence those: spring-projects/spring-framework#33934 (comment) |
Hi guys, It's almost 1 month that SpringBoot3.4 is released and we know that we have very limited contributor with there great effots, But still any tentative timeline to release 3.4 final recipe so base on that we can plan the work of upgrade to 3.4. |
Hi @A1016375 ; There is no set timeline; any help developing these recipes is welcome! |
We want to support folks looking to migrate to Spring Boot 3.4
Here's an incomplete list of tasks related to this migration
org.webjars:webjars-locator-core
depend onorg.webjars:webjars-locator-lite
RestTemplateBuilder
@Valid
where previously only@Validated
was required seeThe text was updated successfully, but these errors were encountered: