rewrite-spring
rewrite-spring copied to clipboard
OpenRewrite recipes for Spring projects.
__TEMPLATE_STOP__ tell me that something is missing by I don't know what @Bean Step myStep(JobRepository jobRepository) { return new StepBuilder("myStep", jobRepository)/*__TEMPLATE_STOP__*/ ./*__TEMPLATE_STOP__*/chunk(completionPolicy()) . chunk(completionPolicy()) .reader(reader()) .writer(writer()) .build(); }
The unit test with trimmed down petclinic is #485 The issue seems to be coming from maven resolution in rewrite as XML Bind dependency somehow ends up as a compile...
## What version of OpenRewrite are you using? I am using - org.openrewrite.maven 5.21.0 - rewrite-spring 5.2.0 - and recipe is org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_2 ## How are you running OpenRewrite? I am...
## What problem are you trying to solve? Use this shiny new property: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.2-Release-Notes#properties ...as a replacement for calling `Hooks.enableAutomaticContextPropagation();` before booting the app, as mentioned in this blog post:...
The replacement done on these lines is incorrect when it concerns empty collections, is what I'm told on Discord: https://github.com/openrewrite/rewrite-spring/blob/71fbf7c27536877c47b28e85a13f0f4629d6b5de/src/main/resources/META-INF/rewrite/spring-framework-53.yml#L47-L54 > earlier a List list was passed, which was coming...
## What version of OpenRewrite are you using? I am using - Maven/Gradle plugin v5.18.0 - rewrite-spring v5.1.7 ## How are you running OpenRewrite? I am using the Maven command...
While using org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_2, my class was not rewrited completely. The result is attached [WebSecurityConfigurerAdapter.txt](https://github.com/openrewrite/rewrite-spring/files/13664018/WebSecurityConfigurerAdapter.txt)
## What problem are you trying to solve? Spring Framework 6.1 made this change: https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x?secureweb=Teams#parameter-name-retention Looking at the discussion behind that change (https://github.com/spring-projects/spring-framework/pull/29531), it seems that the Spring Team expects...
Spring petclinic is the famous demo app for Spring. Upgrading this app from 2.x to 3.0.x results in compilation errors due to the missing **jakarta.xml.bind-api** dependency. It used to work....
Migrating to Spring Boot 3 also requires migrating to Hibernate 6.1. It appears that `rewrite-spring` doesn't yet fully implement this. There is a migration for [Hibernate 6](https://docs.jboss.org/hibernate/orm/6.0/migration-guide/migration-guide.html) and [Hibernate 6.1](https://docs.jboss.org/hibernate/orm/6.1/migration-guide/migration-guide.html)....