From b9765a604cb1b0ede889cd681b6bb26a7482c54b Mon Sep 17 00:00:00 2001 From: Harald Aamot Date: Mon, 21 Oct 2024 22:05:41 +0200 Subject: [PATCH] SAP cloud logging support migration to SB 3.x (#608) * 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 --- .../META-INF/rewrite/spring-boot-30.yml | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/main/resources/META-INF/rewrite/spring-boot-30.yml b/src/main/resources/META-INF/rewrite/spring-boot-30.yml index f98c7f961..c3de161fb 100644 --- a/src/main/resources/META-INF/rewrite/spring-boot-30.yml +++ b/src/main/resources/META-INF/rewrite/spring-boot-30.yml @@ -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 @@ -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` @@ -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 @@ -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)"