Skip to content
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

chore: pull Spring Boot 2.7 type changes into a separate recipe #393

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 25 additions & 13 deletions src/main/resources/META-INF/rewrite/spring-boot-27.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,7 @@ recipeList:
- org.openrewrite.gradle.plugins.UpgradePluginVersion:
pluginIdPattern: org.springframework.boot
newVersion: 2.7.x
# Use recommended replacements for deprecated APIs
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.boot.web.server.LocalServerPort
newFullyQualifiedTypeName: org.springframework.boot.test.web.server.LocalServerPort
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.boot.actuate.autoconfigure.web.server.LocalManagementPort
newFullyQualifiedTypeName: org.springframework.boot.test.web.server.LocalManagementPort
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.boot.rsocket.context.LocalRSocketServerPort
newFullyQualifiedTypeName: org.springframework.boot.test.rsocket.server.LocalRSocketServerPort
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
newFullyQualifiedTypeName: org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy
- org.openrewrite.java.spring.boot2.SpringBootTypeChanges_2_7
- org.openrewrite.java.spring.boot2.SpringBootProperties_2_7
# Switch MySQL driver artifactId
- org.openrewrite.java.dependencies.ChangeDependency:
Expand Down Expand Up @@ -138,3 +126,27 @@ recipeList:
propertyKey: spring.jpa.hibernate.naming.physical-strategy
oldValue: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
newValue: org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy

---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot2.SpringBootTypeChanges_2_7
displayName: Migrate deprecated APIs to the recommended replacements for Spring Boot 2.7
description: >
Migrate applications to the latest Spring Boot 2.7 release. This recipe will replace APIs deprecated in the previous
version with the recommended replacement for Spring Boot 2.7
tags:
- spring
- boot
recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.boot.web.server.LocalServerPort
newFullyQualifiedTypeName: org.springframework.boot.test.web.server.LocalServerPort
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.boot.actuate.autoconfigure.web.server.LocalManagementPort
newFullyQualifiedTypeName: org.springframework.boot.test.web.server.LocalManagementPort
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.boot.rsocket.context.LocalRSocketServerPort
newFullyQualifiedTypeName: org.springframework.boot.test.rsocket.server.LocalRSocketServerPort
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
newFullyQualifiedTypeName: org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy
Loading