Skip to content

Commit

Permalink
Regenerated properties for older Spring Boot version
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Nov 26, 2024
1 parent fbfab81 commit 3a8ff2a
Show file tree
Hide file tree
Showing 11 changed files with 1,086 additions and 226 deletions.
444 changes: 400 additions & 44 deletions src/main/resources/META-INF/rewrite/spring-boot-20-properties.yml

Large diffs are not rendered by default.

110 changes: 97 additions & 13 deletions src/main/resources/META-INF/rewrite/spring-boot-21-properties.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2023 the original author or authors.
# Copyright 2024 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.
Expand All @@ -13,6 +13,8 @@
# 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.boot2.SpringBootProperties_2_1
Expand All @@ -22,9 +24,24 @@ tags:
- spring
- boot
recipeList:
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.endpoints.jmx.unique-names
newPropertyKey: spring.jmx.unique-names
- 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: 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.servlet.path
newPropertyKey: spring.mvc.servlet.path
Expand Down Expand Up @@ -100,16 +117,83 @@ recipeList:
- 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

- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: liquibase.check-change-log-location
comment: "This property is deprecated: Liquibase has its own check that checks if the change log location exists making this property redundant."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.binders.processor.enabled
comment: "This property is deprecated: Instead, filter 'system.cpu' and 'process.cpu' metrics."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.binders.uptime.enabled
comment: "This property is deprecated: Instead, filter 'process.uptime' and 'process.start.time' metrics."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: server.connection-timeout
comment: "This property is deprecated: Each server behaves differently. Use server specific properties instead."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.couchbase.env.endpoints.query
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.couchbase.env.endpoints.view
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.data.cassandra.load-balancing-policy
comment: "This property is deprecated: Implement a ClusterBuilderCustomizer bean instead."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.data.cassandra.reconnection-policy
comment: "This property is deprecated: Implement a ClusterBuilderCustomizer bean instead."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.data.cassandra.retry-policy
comment: "This property is deprecated: Implement a ClusterBuilderCustomizer bean instead."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.flyway.dry-run-output
comment: "This property is deprecated: Flyway pro edition only."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.flyway.error-handlers
comment: "This property is deprecated: Flyway pro edition only."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.flyway.undo-sql-migration-prefix
comment: "This property is deprecated: Flyway pro edition only."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.default-timeout
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.expiry-scanners
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.log-dir
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.one-phase-commit
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.periodic-recovery-period
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.recovery-backoff-period
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.recovery-db-pass
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.recovery-db-user
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.recovery-jms-pass
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.recovery-jms-user
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.recovery-modules
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.transaction-manager-id
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.narayana.xa-resource-orphan-filters
comment: "This property is deprecated: Narayana support has moved to third party starter."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.liquibase.check-change-log-location
comment: "This property is deprecated: Liquibase has it's own check that checks if the change log location exists making this property redundant."

114 changes: 92 additions & 22 deletions src/main/resources/META-INF/rewrite/spring-boot-22-properties.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2023 the original author or authors.
# Copyright 2024 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.
Expand All @@ -13,6 +13,8 @@
# 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.boot2.SpringBootProperties_2_2
Expand All @@ -22,6 +24,21 @@ tags:
- spring
- boot
recipeList:
- 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
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: server.jetty.accesslog.date-format
newPropertyKey: server.jetty.accesslog.custom-format
Expand All @@ -43,15 +60,12 @@ recipeList:
- 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.datasource.jmx-enabled
newPropertyKey: spring.datasource.tomcat.jmx-enabled
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.jackson.joda-date-time-format
newPropertyKey: dateFormat
Expand All @@ -61,26 +75,82 @@ recipeList:
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.rabbitmq.publisher-confirms
newPropertyKey: spring.rabbitmq.publisher-confirm-type
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.reactor.stacktrace-mode.enabled
newPropertyKey: spring.reactor.debug-agent.enabled

- 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

- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.health.elasticsearch.indices
comment: "This property is deprecated: Upstream elasticsearch transport is deprecated."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.health.elasticsearch.response-timeout
comment: "This property is deprecated: Upstream elasticsearch transport is deprecated."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.export.appoptics.num-threads
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.export.datadog.num-threads
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.export.dynatrace.num-threads
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.export.elastic.num-threads
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.export.humio.num-threads
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.export.humio.repository
comment: "This property is deprecated: No longer used as repository is resolved from the api token."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.export.influx.num-threads
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.export.kairos.num-threads
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.export.newrelic.num-threads
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.export.signalfx.num-threads
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.metrics.export.wavefront.num-threads
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.data.elasticsearch.cluster-name
comment: "This property is deprecated: The transport client support is deprecated. Use other supported clients instead."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.data.elasticsearch.cluster-nodes
comment: "This property is deprecated: The transport client support is deprecated. Use other supported clients instead."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.data.elasticsearch.properties
comment: "This property is deprecated: The transport client support is deprecated. Use other supported clients instead."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.datasource.dbcp2.enable-auto-commit-on-return
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.elasticsearch.jest.uris
comment: "This property is deprecated: The Jest client support is deprecated. Use other supported clients instead."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.mvc.contentnegotiation.favor-path-extension
comment: "This property is deprecated: Use of path extensions for request mapping and for content negotiation is discouraged."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.mvc.favicon.enabled
comment: "This property is deprecated and will be removed in future Spring Boot versions"
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.mvc.pathmatch.use-registered-suffix-pattern
comment: "This property is deprecated: Use of path extensions for request mapping and for content negotiation is discouraged."
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.mvc.pathmatch.use-suffix-pattern
comment: "This property is deprecated: Use of path extensions for request mapping and for content negotiation is discouraged."

Loading

0 comments on commit 3a8ff2a

Please sign in to comment.