Skip to content
Draft
Show file tree
Hide file tree
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
72 changes: 72 additions & 0 deletions src/main/resources/META-INF/rewrite/spring-boot-40-properties.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#
# Copyright 2025 the original author or authors.
# <p>
# 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
# <p>
# https://docs.moderne.io/licensing/moderne-source-available-license
# <p>
# 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

29 changes: 29 additions & 0 deletions src/main/resources/META-INF/rewrite/spring-boot-40.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Copyright 2025 the original author or authors.
# <p>
# 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
# <p>
# https://docs.moderne.io/licensing/moderne-source-available-license
# <p>
# 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