Migrate Spring Boot properties to 2.5
org.openrewrite.java.spring.boot2.SpringBootProperties_2_5
Migrate properties found in application.properties
and application.yml
.
Tags
- spring
- boot
Recipe source
GitHub, Issue Tracker, Maven Central
This recipe is composed of more than one recipe. If you want to customize the set of recipes this is composed of, you can find and copy the GitHub source for the recipe from the link above.
License
This recipe is available under the Moderne Source Available License.
Definition
- Recipe List
- Yaml Recipe List
- Change the key of a spring application property
- oldPropertyKey:
spring.artemis.host
- newPropertyKey:
spring.artemis.broker-url
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.artemis.port
- newPropertyKey:
spring.artemis.broker-url
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.batch.initialize-schema
- newPropertyKey:
spring.batch.jdbc.initialize-schema
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.batch.initializer.enabled
- newPropertyKey:
spring.batch.jdbc.initialize-schema
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.batch.schema
- newPropertyKey:
spring.batch.jdbc.schema
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.batch.table-prefix
- newPropertyKey:
spring.batch.jdbc.table-prefix
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.data.neo4j.username
- newPropertyKey:
spring.neo4j.authentication.username
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.datasource.continue-on-error
- newPropertyKey:
spring.sql.init.continue-on-error
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.datasource.data
- newPropertyKey:
spring.sql.init.data-locations
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.datasource.data-password
- newPropertyKey:
spring.sql.init.password
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.datasource.data-username
- newPropertyKey:
spring.sql.init.username
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.datasource.initialization-mode
- newPropertyKey:
spring.sql.init.mode
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.datasource.platform
- newPropertyKey:
spring.sql.init.platform
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.datasource.schema
- newPropertyKey:
spring.sql.init.schema-locations
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.datasource.schema-password
- newPropertyKey:
spring.sql.init.password
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.datasource.schema-username
- newPropertyKey:
spring.sql.init.username
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.datasource.separator
- newPropertyKey:
spring.sql.init.separator
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.datasource.sql-script-encoding
- newPropertyKey:
spring.sql.init.encoding
- oldPropertyKey:
- Change the key of a spring application property
- oldPropertyKey:
spring.sql.init.enabled
- newPropertyKey:
spring.sql.init.mode
- oldPropertyKey:
- Comment out Spring properties
- propertyKey:
spring.flyway.check-location
- comment:
This property is deprecated: Locations can no longer be checked accurately due to changes in Flyway's location support.
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.acquire-increment
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.acquisition-interval
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.acquisition-timeout
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.allow-local-transactions
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.apply-transaction-timeout
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.automatic-enlisting-enabled
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.cache-producers-consumers
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.class-name
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.defer-connection-release
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.disabled
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.driver-properties
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.ignore-recovery-failures
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.max-idle-time
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.max-pool-size
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.min-pool-size
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.password
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.share-transaction-connections
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.test-connections
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.two-pc-ordering-position
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.unique-name
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.use-tm-join
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.connectionfactory.user
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.acquire-increment
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.acquisition-interval
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.acquisition-timeout
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.allow-local-transactions
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.apply-transaction-timeout
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.automatic-enlisting-enabled
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.class-name
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.cursor-holdability
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.defer-connection-release
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.disabled
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.driver-properties
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.enable-jdbc4-connection-test
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.ignore-recovery-failures
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.isolation-level
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.local-auto-commit
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.login-timeout
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.max-idle-time
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.max-pool-size
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.min-pool-size
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.prepared-statement-cache-size
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.share-transaction-connections
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.test-query
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.two-pc-ordering-position
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.unique-name
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.datasource.use-tm-join
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jta.bitronix.properties.background-recovery-interval
- comment:
This property is deprecated and will be removed in future Spring Boot versions
- propertyKey:
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot2.SpringBootProperties_2_5
displayName: Migrate Spring Boot properties to 2.5
description: Migrate properties found in `application.properties` and `application.yml`.
tags:
- spring
- boot
recipeList:
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.artemis.host
newPropertyKey: spring.artemis.broker-url
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.artemis.port
newPropertyKey: spring.artemis.broker-url
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.batch.initialize-schema
newPropertyKey: spring.batch.jdbc.initialize-schema
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.batch.initializer.enabled
newPropertyKey: spring.batch.jdbc.initialize-schema
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.batch.schema
newPropertyKey: spring.batch.jdbc.schema
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.batch.table-prefix
newPropertyKey: spring.batch.jdbc.table-prefix
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.neo4j.username
newPropertyKey: spring.neo4j.authentication.username
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.datasource.continue-on-error
newPropertyKey: spring.sql.init.continue-on-error
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.datasource.data
newPropertyKey: spring.sql.init.data-locations
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.datasource.data-password
newPropertyKey: spring.sql.init.password
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.datasource.data-username
newPropertyKey: spring.sql.init.username
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.datasource.initialization-mode
newPropertyKey: spring.sql.init.mode
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.datasource.platform
newPropertyKey: spring.sql.init.platform
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.datasource.schema
newPropertyKey: spring.sql.init.schema-locations
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.datasource.schema-password
newPropertyKey: spring.sql.init.password
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.datasource.schema-username
newPropertyKey: spring.sql.init.username
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.datasource.separator
newPropertyKey: spring.sql.init.separator
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.datasource.sql-script-encoding
newPropertyKey: spring.sql.init.encoding
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.sql.init.enabled
newPropertyKey: spring.sql.init.mode
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.flyway.check-location
comment: This property is deprecated: Locations can no longer be checked accurately due to changes in Flyway's location support.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.acquire-increment
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.acquisition-interval
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.acquisition-timeout
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.allow-local-transactions
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.apply-transaction-timeout
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.automatic-enlisting-enabled
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.cache-producers-consumers
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.class-name
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.defer-connection-release
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.disabled
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.driver-properties
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.ignore-recovery-failures
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.max-idle-time
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.max-pool-size
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.min-pool-size
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.password
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.share-transaction-connections
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.test-connections
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.two-pc-ordering-position
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.unique-name
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.use-tm-join
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.connectionfactory.user
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.acquire-increment
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.acquisition-interval
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.acquisition-timeout
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.allow-local-transactions
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.apply-transaction-timeout
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.automatic-enlisting-enabled
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.class-name
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.cursor-holdability
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.defer-connection-release
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.disabled
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.driver-properties
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.enable-jdbc4-connection-test
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.ignore-recovery-failures
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.isolation-level
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.local-auto-commit
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.login-timeout
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.max-idle-time
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.max-pool-size
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.min-pool-size
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.prepared-statement-cache-size
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.share-transaction-connections
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.test-query
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.two-pc-ordering-position
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.unique-name
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.datasource.use-tm-join
comment: This property is deprecated and will be removed in future Spring Boot versions
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jta.bitronix.properties.background-recovery-interval
comment: This property is deprecated and will be removed in future Spring Boot versions
Usage
This recipe has no required configuration options. It can be activated by adding a dependency on org.openrewrite.recipe:rewrite-spring
in your build file or by running a shell command (in which case no build changes are needed):
- Gradle
- Gradle init script
- Maven POM
- Maven Command Line
- Moderne CLI
- Add the following to your
build.gradle
file:
plugins {
id("org.openrewrite.rewrite") version("6.29.0")
}
rewrite {
activeRecipe("org.openrewrite.java.spring.boot2.SpringBootProperties_2_5")
setExportDatatables(true)
}
repositories {
mavenCentral()
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-spring:5.25.0")
}
- Run
gradle rewriteRun
to run the recipe.
- Create a file named
init.gradle
in the root of your project.
initscript {
repositories {
maven { url "https://plugins.gradle.org/m2" }
}
dependencies { classpath("org.openrewrite:plugin:6.29.0") }
}
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite.recipe:rewrite-spring:5.25.0")
}
rewrite {
activeRecipe("org.openrewrite.java.spring.boot2.SpringBootProperties_2_5")
setExportDatatables(true)
}
afterEvaluate {
if (repositories.isEmpty()) {
repositories {
mavenCentral()
}
}
}
}
- Run the recipe.
gradle --init-script init.gradle rewriteRun
- Add the following to your
pom.xml
file:
<project>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>5.47.0</version>
<configuration>
<exportDatatables>true</exportDatatables>
<activeRecipes>
<recipe>org.openrewrite.java.spring.boot2.SpringBootProperties_2_5</recipe>
</activeRecipes>
</configuration>
<dependencies>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-spring</artifactId>
<version>5.25.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
- Run
mvn rewrite:run
to run the recipe.
You will need to have Maven installed on your machine before you can run the following command.
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-spring:RELEASE -Drewrite.activeRecipes=org.openrewrite.java.spring.boot2.SpringBootProperties_2_5 -Drewrite.exportDatatables=true
You will need to have configured the Moderne CLI on your machine before you can run the following command.
mod run . --recipe SpringBootProperties_2_5
If the recipe is not available locally, then you can install it using:
mod config recipes jar install org.openrewrite.recipe:rewrite-spring:5.25.0
See how this recipe works across multiple open-source repositories
Run this recipe on OSS repos at scale with the Moderne SaaS.
The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.
Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.
Data Tables
Source files that had results
org.openrewrite.table.SourcesFileResults
Source files that were modified by the recipe run.
Column Name | Description |
---|---|
Source path before the run | The source path of the file before the run. null when a source file was created during the run. |
Source path after the run | A recipe may modify the source path. This is the path after the run. null when a source file was deleted during the run. |
Parent of the recipe that made changes | In a hierarchical recipe, the parent of the recipe that made a change. Empty if this is the root of a hierarchy or if the recipe is not hierarchical at all. |
Recipe that made changes | The specific recipe that made a change. |
Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
Cycle | The recipe cycle in which the change was made. |
Source files that errored on a recipe
org.openrewrite.table.SourcesFileErrors
The details of all errors produced by a recipe run.
Column Name | Description |
---|---|
Source path | The file that failed to parse. |
Recipe that made changes | The specific recipe that made a change. |
Stack trace | The stack trace of the failure. |
Recipe performance
org.openrewrite.table.RecipeRunStats
Statistics used in analyzing the performance of recipes.
Column Name | Description |
---|---|
The recipe | The recipe whose stats are being measured both individually and cumulatively. |
Source file count | The number of source files the recipe ran over. |
Source file changed count | The number of source files which were changed in the recipe run. Includes files created, deleted, and edited. |
Cumulative scanning time | The total time spent across the scanning phase of this recipe. |
99th percentile scanning time | 99 out of 100 scans completed in this amount of time. |
Max scanning time | The max time scanning any one source file. |
Cumulative edit time | The total time spent across the editing phase of this recipe. |
99th percentile edit time | 99 out of 100 edits completed in this amount of time. |
Max edit time | The max time editing any one source file. |
Contributors
ashakirin, Tyler Van Gorder, Knut Wannheden, Jonathan Schnéider, Tim te Beek, Nick McKinney, Patrick, Kyle Scully