
META-INF.rewrite.spring-boot-configuration-migration-manual.yml Maven / Gradle / Ivy
#
# Copyright 2021 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# 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.
#
---
# Manual additions to Spring Boot properties not otherwise picked up by the autogenerated set.
# See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.5-Configuration-Changelog#deprecated-in-250
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot2.SpringBootPropertiesManual_2_5
displayName: Migrate additional Spring Boot properties to 2.5
description: Migrate properties found in `application.properties` and `application.yml` which are not generated automatically from Spring Boot's `additional-spring-configuration-metadata.json` file.
recipeList:
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.datasource.continue-on-error
newPropertyKey: spring.sql.init.continue-on-error
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.datasource.continue-on-error
newPropertyKey: spring.sql.init.continue-on-error
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.datasource.data
newPropertyKey: spring.sql.init.data-locations
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.datasource.data
newPropertyKey: spring.sql.init.data-locations
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.datasource.data-password
newPropertyKey: spring.sql.init.password
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.datasource.data-password
newPropertyKey: spring.sql.init.password
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.datasource.data-username
newPropertyKey: spring.sql.init.username
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.datasource.data-username
newPropertyKey: spring.sql.init.username
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.datasource.initialization-mode
newPropertyKey: spring.sql.init.enabled
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.datasource.initialization-mode
newPropertyKey: spring.sql.init.enabled
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.datasource.platform
newPropertyKey: spring.sql.init.platform
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.datasource.platform
newPropertyKey: spring.sql.init.platform
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.datasource.schema
newPropertyKey: spring.sql.init.schema-locations
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.datasource.schema
newPropertyKey: spring.sql.init.schema-locations
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.datasource.schema-password
newPropertyKey: spring.sql.init.password
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.datasource.schema-password
newPropertyKey: spring.sql.init.password
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.datasource.schema-username
newPropertyKey: spring.sql.init.username
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.datasource.schema-username
newPropertyKey: spring.sql.init.username
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.datasource.separator
newPropertyKey: spring.sql.init.separator
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.datasource.separator
newPropertyKey: spring.sql.init.separator
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.datasource.sql-script-encoding
newPropertyKey: spring.sql.init.encoding
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.datasource.sql-script-encoding
newPropertyKey: spring.sql.init.encoding
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.artemis.host
newPropertyKey: spring.artemis.broker-url
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.artemis.host
newPropertyKey: spring.artemis.broker-url
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.artemis.port
newPropertyKey: spring.artemis.broker-url
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.artemis.port
newPropertyKey: spring.artemis.broker-url
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.batch.initialize-schema
newPropertyKey: spring.batch.jdbc.initialize-schema
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.batch.initialize-schema
newPropertyKey: spring.batch.jdbc.initialize-schema
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.batch.schema
newPropertyKey: spring.batch.jdbc.schema
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.batch.schema
newPropertyKey: spring.batch.jdbc.schema
- org.openrewrite.properties.ChangePropertyKey:
oldPropertyKey: spring.batch.table-prefix
newPropertyKey: spring.batch.jdbc.table-prefix
- org.openrewrite.yaml.ChangePropertyKey:
oldPropertyKey: spring.batch.table-prefix
newPropertyKey: spring.batch.jdbc.table-prefix