-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate property migrations for `META-INF/spring-configuration-metad…
…ata.json` too (#445) * Also pick up generated metadata, and write to separate files * Migrate Spring Boot 3 properties to separate files * Move Spring Boot 2.0 properties to separate file * Move Spring Boot 2.1 properties to separate file * Move Spring Boot 2.2 properties to separate file * Move Spring Boot 2.3 properties to separate file * Move Spring Boot 2.4 properties to separate file * Move Spring Boot 2.5 properties to separate file * Move Spring Boot 2.6 properties to separate file * Move Spring Boot 2.7 properties to separate file * Restore `except: [ active, default, group, include ]`
- Loading branch information
Showing
22 changed files
with
2,059 additions
and
1,895 deletions.
There are no files selected for viewing
535 changes: 535 additions & 0 deletions
535
src/main/resources/META-INF/rewrite/spring-boot-20-properties.yml
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
115 changes: 115 additions & 0 deletions
115
src/main/resources/META-INF/rewrite/spring-boot-21-properties.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# | ||
# Copyright 2023 the original author or authors. | ||
# <p> | ||
# 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 | ||
# <p> | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# <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.boot2.SpringBootProperties_2_1 | ||
displayName: Migrate Spring Boot properties to 2.1 | ||
description: Migrate properties found in `application.properties` and `application.yml`. | ||
tags: | ||
- spring | ||
- boot | ||
recipeList: | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.jetty.max-http-post-size | ||
newPropertyKey: server.jetty.max-http-form-post-size | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.servlet.path | ||
newPropertyKey: spring.mvc.servlet.path | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.tomcat.max-http-header-size | ||
newPropertyKey: server.max-http-header-size | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.tomcat.max-http-post-size | ||
newPropertyKey: server.tomcat.max-http-form-post-size | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.activemq.pool.maximum-active-session-per-connection | ||
newPropertyKey: spring.activemq.pool.max-sessions-per-connection | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.artemis.pool.maximum-active-session-per-connection | ||
newPropertyKey: spring.artemis.pool.max-sessions-per-connection | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.admin.ssl.keystore-location | ||
newPropertyKey: spring.kafka.admin.ssl.key-store-location | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.admin.ssl.keystore-password | ||
newPropertyKey: spring.kafka.admin.ssl.key-store-password | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.admin.ssl.truststore-location | ||
newPropertyKey: spring.kafka.admin.ssl.trust-store-location | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.admin.ssl.truststore-password | ||
newPropertyKey: spring.kafka.admin.ssl.trust-store-password | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.consumer.ssl.keystore-location | ||
newPropertyKey: spring.kafka.consumer.ssl.key-store-location | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.consumer.ssl.keystore-password | ||
newPropertyKey: spring.kafka.consumer.ssl.key-store-password | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.consumer.ssl.truststore-location | ||
newPropertyKey: spring.kafka.consumer.ssl.trust-store-location | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.consumer.ssl.truststore-password | ||
newPropertyKey: spring.kafka.consumer.ssl.trust-store-password | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.producer.ssl.keystore-location | ||
newPropertyKey: spring.kafka.producer.ssl.key-store-location | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.producer.ssl.keystore-password | ||
newPropertyKey: spring.kafka.producer.ssl.key-store-password | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.producer.ssl.truststore-location | ||
newPropertyKey: spring.kafka.producer.ssl.trust-store-location | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.producer.ssl.truststore-password | ||
newPropertyKey: spring.kafka.producer.ssl.trust-store-password | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.ssl.keystore-location | ||
newPropertyKey: spring.kafka.ssl.key-store-location | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.ssl.keystore-password | ||
newPropertyKey: spring.kafka.ssl.key-store-password | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.ssl.truststore-location | ||
newPropertyKey: spring.kafka.ssl.trust-store-location | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.ssl.truststore-password | ||
newPropertyKey: spring.kafka.ssl.trust-store-password | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.kafka.streams.cache-max-bytes-buffering | ||
newPropertyKey: spring.kafka.streams.cache-max-size-buffering | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.mvc.formcontent.putfilter.enabled | ||
newPropertyKey: spring.mvc.formcontent.filter.enabled | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.rabbitmq.template.queue | ||
newPropertyKey: spring.rabbitmq.template.default-receive-queue | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.resources.chain.gzipped | ||
newPropertyKey: spring.resources.chain.compressed | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: management.metrics.binders.files.enabled | ||
newPropertyKey: management.metrics.enable.process.files | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: management.metrics.binders.jvm.enabled | ||
newPropertyKey: management.metrics.enable.jvm | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: management.metrics.binders.logback.enabled | ||
newPropertyKey: management.metrics.enable.logback | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: management.endpoints.jmx.unique-names | ||
newPropertyKey: spring.jmx.unique-names | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
src/main/resources/META-INF/rewrite/spring-boot-22-properties.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# | ||
# Copyright 2023 the original author or authors. | ||
# <p> | ||
# 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 | ||
# <p> | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# <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.boot2.SpringBootProperties_2_2 | ||
displayName: Migrate Spring Boot properties to 2.2 | ||
description: Migrate properties found in `application.properties` and `application.yml`. | ||
tags: | ||
- spring | ||
- boot | ||
recipeList: | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.jetty.accesslog.date-format | ||
newPropertyKey: server.jetty.accesslog.custom-format | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.jetty.accesslog.extended-format | ||
newPropertyKey: server.jetty.accesslog.format | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.jetty.accesslog.locale | ||
newPropertyKey: server.jetty.accesslog.custom-format | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.jetty.accesslog.log-cookies | ||
newPropertyKey: server.jetty.accesslog.custom-format | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.jetty.accesslog.log-latency | ||
newPropertyKey: server.jetty.accesslog.custom-format | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.jetty.accesslog.log-server | ||
newPropertyKey: server.jetty.accesslog.custom-format | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.jetty.accesslog.time-zone | ||
newPropertyKey: server.jetty.accesslog.custom-format | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.datasource.jmx-enabled | ||
newPropertyKey: spring.datasource.tomcat.jmx-enabled | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.reactor.stacktrace-mode.enabled | ||
newPropertyKey: spring.reactor.debug-agent.enabled | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: server.use-forward-headers | ||
newPropertyKey: server.forward-headers-strategy | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.jackson.joda-date-time-format | ||
newPropertyKey: dateFormat | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.rabbitmq.listener.simple.transaction-size | ||
newPropertyKey: spring.rabbitmq.listener.simple.batch-size | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: spring.rabbitmq.publisher-confirms | ||
newPropertyKey: spring.rabbitmq.publisher-confirm-type | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: logging.file | ||
newPropertyKey: logging.file.name | ||
except: [ .+ ] | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: logging.path | ||
newPropertyKey: logging.file.path | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: management.health.status.http-mapping | ||
newPropertyKey: management.endpoint.health.status.http-mapping | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: management.health.status.order | ||
newPropertyKey: management.endpoint.health.status.order | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: management.metrics.web.client.requests-metric-name | ||
newPropertyKey: management.metrics.web.client.request.metric-name | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: management.metrics.web.server.auto-time-requests | ||
newPropertyKey: management.metrics.web.server.request.autotime.enabled | ||
- org.openrewrite.java.spring.ChangeSpringPropertyKey: | ||
oldPropertyKey: management.metrics.web.server.requests-metric-name | ||
newPropertyKey: management.metrics.web.server.request.metric-name | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.