openrewrite / rewrite-spring

OpenRewrite recipes for Spring projects.
Apache License 2.0
253 stars 75 forks source link

Migration Recipe for SpringBatch 5.0 #265

Open desprez opened 1 year ago

desprez commented 1 year ago

Springboot 3.x Spring-Boot-3.0-Release-Notes comes with new version 5.0 of Spring-batch and lots of deprecated stuff and changes. Do you plan to add recipes for this migration, here or in annoter repository ?

timtebeek commented 1 year ago

This repository would probably be the best place for such migration recipes, similar to how we've included recipes for Spring Data migrations here as well. I imagine a new package org.openrewrite.java.spring.batch should be enough to get started for now. Would you be willing to contribute migration recipes to kick this off?

I'll link the Spring Batch v5.0.0 Release and Migration Guide here for others as well.

Quickly looking through the migration guide there's:

desprez commented 1 year ago

Hello, please take a look for this pr #280

crankydillo commented 2 months ago

Is there a plan for the spring-batch migration to be embedded in the spring-boot 3 migration somehow? Or is it expected that someone would run spring-boot-3.0 upgrade and then spring-batch-5.0 upgrade? I would assume the former since spring-boot governs batch version, right?

Anyhow, I'm asking because I work on a project that has some similarities to spring-boot and am wondering how to pattern upgrades. I promise not to derail this issue:)

timtebeek commented 2 months ago

The plan is certainly to make these recipes part of a regular Spring Boot migration; there's good work already done in