diff --git a/src/main/resources/META-INF/rewrite/spring-boot-40-properties.yml b/src/main/resources/META-INF/rewrite/spring-boot-40-properties.yml new file mode 100644 index 000000000..dedc1e7b4 --- /dev/null +++ b/src/main/resources/META-INF/rewrite/spring-boot-40-properties.yml @@ -0,0 +1,72 @@ +# +# Copyright 2025 the original author or authors. +#

+# Licensed under the Moderne Source Available License (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +#

+# https://docs.moderne.io/licensing/moderne-source-available-license +#

+# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# This file is automatically generated by the GeneratePropertiesMigratorConfiguration class. +# Do not edit this file manually. Update the Spring Boot property metadata upstream instead. +--- +type: specs.openrewrite.org/v1beta/recipe +name: org.openrewrite.java.spring.boot4.SpringBootProperties_4_0 +displayName: Migrate Spring Boot properties to 4.0 +description: Migrate properties found in `application.properties` and `application.yml`. +tags: + - spring + - boot +recipeList: + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: management.logging.export.enabled + newPropertyKey: management.opentelemetry.logging.export.enabled + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: management.observations.annotations.long-lask-timer.enabled + newPropertyKey: management.metrics.observations.ignored-meters + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: management.otlp.logging + newPropertyKey: management.opentelemetry.logging.export + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: management.otlp.logging.compression + newPropertyKey: management.opentelemetry.logging.export.compression + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: management.otlp.logging.connect-timeout + newPropertyKey: management.opentelemetry.logging.export.connect-timeout + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: management.otlp.logging.endpoint + newPropertyKey: management.opentelemetry.logging.export.endpoint + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: management.otlp.logging.export.enabled + newPropertyKey: management.opentelemetry.logging.export.enabled + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: management.otlp.logging.headers + newPropertyKey: management.opentelemetry.logging.export.headers + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: management.otlp.logging.timeout + newPropertyKey: management.opentelemetry.logging.export.timeout + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: management.otlp.logging.transport + newPropertyKey: management.opentelemetry.logging.export.transport + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: server.servlet.encoding.charset + newPropertyKey: spring.servlet.encoding.charset + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: server.servlet.encoding.enabled + newPropertyKey: spring.servlet.encoding.enabled + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: server.servlet.encoding.force + newPropertyKey: spring.servlet.encoding.force + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: server.servlet.encoding.force-request + newPropertyKey: spring.servlet.encoding.force-request + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: server.servlet.encoding.force-response + newPropertyKey: spring.servlet.encoding.force-response + diff --git a/src/main/resources/META-INF/rewrite/spring-boot-40.yml b/src/main/resources/META-INF/rewrite/spring-boot-40.yml new file mode 100644 index 000000000..1a22cde87 --- /dev/null +++ b/src/main/resources/META-INF/rewrite/spring-boot-40.yml @@ -0,0 +1,29 @@ +# +# Copyright 2025 the original author or authors. +#

+# Licensed under the Moderne Source Available License (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +#

+# https://docs.moderne.io/licensing/moderne-source-available-license +#

+# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +--- +type: specs.openrewrite.org/v1beta/recipe +name: org.openrewrite.java.spring.boot3.UpgradeSpringBoot_4_0 +displayName: Migrate to Spring Boot 4.0 +description: >- + Migrate applications to the latest Spring Boot 4.0 release. This recipe will modify an application's build files, + make changes to deprecated/preferred APIs. +tags: + - spring + - boot +recipeList: + - org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_5 + - org.openrewrite.java.spring.boot4.SpringBootProperties_4_0