Migrate to Spring HATEOAS 3.0

Proprietary

Migrate applications to Spring HATEOAS 3.0, which ships with Spring Boot 4.0. Spring HATEOAS 3.0 moves to Jackson 3, renaming the Jackson2* media type modules and message converter, and removes APIs that were deprecated in the 1.x and 2.x lines. Removed APIs without a mechanical replacement are flagged with a comment.

io.moderne.java.spring.boot4.UpgradeSpringHateoas_3_0
mod run . --recipe=io.moderne.java.spring.boot4.UpgradeSpringHateoas_3_0

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Upgrade Gradle or Maven dependency versions org.springframework.hateoas:*:3.0.x
  2. Change type Jackson2HalModule to HalJacksonModule
  3. Change type Jackson2HalFormsModule to HalFormsJacksonModule
  4. Change type Jackson2CollectionJsonModule to CollectionJsonJacksonModule
  5. Change type Jackson2UberModule to UberJacksonModule
  6. Change type TypeConstrainedMappingJackson2HttpMessageConverter to TypeConstrainedJacksonJsonHttpMessageConverter
  7. Replace constant with another constant
  8. Replace constant with another constant
  9. Add comment to method invocations
  10. Add comment to method invocations
  11. Add comment to method invocations
  12. Add comment to method invocations
  13. Add comment to import statement matching org.springframework.hateoas.mediatype.vnderrors..*