8.4.2 release (2023-09-04)
New Recipes
- org.openrewrite.java.spring.batch.RemoveDefaultBatchConfigurer: Remove
extends DefaultBatchConfigurerand@Overridefrom associated methods. - org.openrewrite.java.spring.boot2.HeadersConfigurerLambdaDsl: Converts
HeadersConfigurerchained call from Spring Security pre 5.2.x into new lambda DSL style calls and removesand()methods. - org.openrewrite.java.spring.http.SimplifyMediaTypeParseCalls: Replaces
MediaType.parseMediaType('application/json')andMediaType.valueOf('application/json') withMediaType.APPLICATION_JSON`. - org.openrewrite.java.spring.security5.AuthorizeHttpRequests: Replace
HttpSecurity.authorizeRequests(...)deprecated in Spring Security 6 withHttpSecurity.authorizeHttpRequests(...)and all method calls on the resultant object respectively. Replace deprecatedAbstractInterceptUrlConfigurerand its deprecated subclasses withAuthorizeHttpRequestsConfigurerand its corresponding subclasses. - org.openrewrite.java.spring.security5.UpgradeSpringSecurity_5_7: Migrate applications to the latest Spring Security 5.7 release. This recipe will modify an application's build files, make changes to deprecated/preferred APIs, and migrate configuration settings that have changes between versions.
- org.openrewrite.java.spring.security6.UpgradeSpringSecurity_6_1: Migrate applications to the latest Spring Security 6.1 release. This recipe will modify an application's build files, make changes to deprecated/preferred APIs, and migrate configuration settings that have changes between versions.
- org.openrewrite.java.spring.security6.oauth2.client.OAuth2ClientLambdaDsl: Converts
OAuth2ClientConfigurerchained call from Spring Security pre 5.2.x into new lambda DSL style calls and removesand()methods. - org.openrewrite.java.spring.security6.oauth2.client.OAuth2LoginLambdaDsl: Converts
OAuth2LoginConfigurerchained call from Spring Security pre 5.2.x into new lambda DSL style calls and removesand()methods. - org.openrewrite.java.spring.security6.oauth2.server.resource.OAuth2ResourceServerLambdaDsl: Converts
OAuth2ResourceServerConfigurerchained call from Spring Security pre 5.2.x into new lambda DSL style calls and removesand()methods.
Removed Recipes
- org.openrewrite.java.spring.boot2.AuthorizeHttpRequests: Replace
HttpSecurity.authorizeRequests(...)deprecated in Spring Security 6 withHttpSecurity.authorizeHttpRequests(...)and all method calls on the resultant object respectively. Replace deprecatedAbstractInterceptUrlConfigurerand its deprecated subclasses withAuthorizeHttpRequestsConfigurerand its corresponding subclasses.