Skip to content

Commit

Permalink
SAP cloud logging support migration to SB 3.x (#608)
Browse files Browse the repository at this point in the history
* SAP cloud logging migration to SB 3.x

this migrates SAP's cloud foundry based java logging support libraries to SB 3.x

* general yml file formatting for readability

* Add newVersion 3.x as -jakarta was added in 3.7.0

* Adopt `newVersion: "[3.7.0,4)"` to show lower bound of -jakarta

---------

Co-authored-by: Tim te Beek <[email protected]>
  • Loading branch information
aamotharald and timtebeek authored Oct 21, 2024
1 parent d0bc9dc commit b9765a6
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/main/resources/META-INF/rewrite/spring-boot-30.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ recipeList:
- org.openrewrite.java.spring.cloud2022.UpgradeSpringCloud_2022
- org.openrewrite.java.springdoc.UpgradeSpringDoc_2
- org.openrewrite.hibernate.MigrateToHibernate61

---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot3.ActuatorEndpointSanitization
Expand All @@ -93,7 +94,6 @@ recipeList:
propertyKey: management.endpoint.env.additional-keys-to-sanitize

---

type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot3.MigrateMaxHttpHeaderSize
displayName: Rename `server.max-http-header-size` to `server.max-http-request-header-size`
Expand Down Expand Up @@ -133,6 +133,7 @@ recipeList:
oldGroupId: org.thymeleaf.extras
oldArtifactId: thymeleaf-extras-springsecurity5
newArtifactId: thymeleaf-extras-springsecurity6

---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot3.MigrateDropWizardDependencies
Expand All @@ -159,3 +160,21 @@ recipeList:
oldArtifactId: metrics-servlets
newArtifactId: metrics-jakarta-servlets
newVersion: 4.2.x

---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot3.MigrateSapCfJavaLoggingSupport
displayName: Migrate SAP cloud foundry logging support to Spring Boot 3.x
description: Migrate SAP cloud foundry logging support from `cf-java-logging-support-servlet` to `cf-java-logging-support-servlet-jakarta`, to use Jakarta with Spring Boot 3.
tags:
- spring
- boot
- sap
- cloudfoundry
- logging
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: com.sap.hcp.cf.logging
oldArtifactId: cf-java-logging-support-servlet
newArtifactId: cf-java-logging-support-servlet-jakarta
newVersion: "[3.7.0,4)"

0 comments on commit b9765a6

Please sign in to comment.