All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.rewrite.spring-boot2-upgrade-version.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. # --- ######################################################################################################################## # SpringBoot 2.1 type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_1 displayName: Upgrade to Spring Boot 2.1 description: 'Upgrade to Spring Boot 2.1 from any prior 2.x version.' recipeList: # Upgrade 2.1.x from 2.0.x - org.openrewrite.maven.UpgradeDependencyVersion: groupId: org.springframework.boot artifactId: "*" newVersion: 2.1.x trustParent: true - org.openrewrite.maven.UpgradeParentVersion: groupId: org.springframework.boot artifactId: spring-boot-starter-parent newVersion: 2.1.x # Use recommended replacements for deprecated APIs - org.openrewrite.java.spring.boot2.MigrateRestTemplateBuilderBasicAuthorization - org.openrewrite.java.spring.boot2.MigrateRestTemplateBuilderTimeoutByInt - org.openrewrite.java.spring.boot2.MigrateMultipartConfigFactory # Update properties - org.openrewrite.java.spring.boot2.SpringBootProperties_2_1 --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.MigrateRestTemplateBuilderBasicAuthorization displayName: Use `RestTemplateBuilder#basicAuthentication` description: '`RestTemplateBuilder#basicAuthorization` was deprecated in 2.1.' recipeList: - org.openrewrite.java.ChangeMethodName: methodPattern: org.springframework.boot.web.client.RestTemplateBuilder basicAuthorization(String, String) newMethodName: basicAuthentication --- ######################################################################################################################## # SpringBoot 2.2 type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_2 displayName: Upgrade to Spring Boot 2.2 description: 'Upgrade to Spring Boot 2.2 from any prior 2.x version.' recipeList: # Upgrade to 2.1.x from 2.0.x - org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_1 - org.openrewrite.java.spring.framework.UpgradeSpringFramework_5_2 # Upgrade to 2.2.x from 2.1.x - org.openrewrite.maven.UpgradeDependencyVersion: groupId: org.springframework.boot artifactId: "*" newVersion: 2.2.x trustParent: true - org.openrewrite.maven.UpgradeParentVersion: groupId: org.springframework.boot artifactId: spring-boot-starter-parent newVersion: 2.2.x # Use recommended replacements for deprecated APIs - org.openrewrite.java.spring.boot2.MigrateAbstractHealthIndicatorToPingHealthIndicator - org.openrewrite.java.spring.boot2.MigrateWebTestClientBuilderCustomizerPackageName - org.openrewrite.java.spring.boot2.MigrateConfigurationPropertiesBindingPostProcessorValidatorBeanName - org.openrewrite.java.spring.boot2.SpringBootMavenPluginMigrateAgentToAgents # Update properties - org.openrewrite.java.spring.boot2.SpringBootProperties_2_2 --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.MigrateAbstractHealthIndicatorToPingHealthIndicator displayName: Use `PingHealthIndicator` description: '`org.springframework.boot.actuate.health.AbstractHealthIndicator` was deprecated in 2.2.' recipeList: - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: org.springframework.boot.actuate.health.AbstractHealthIndicator newFullyQualifiedTypeName: org.springframework.boot.actuate.health.PingHealthIndicator --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.MigrateWebTestClientBuilderCustomizerPackageName displayName: Use `WebTestClientBuilderCustomizer` description: '`org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientBuilderCustomizer` was deprecated in 2.2.' recipeList: - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientBuilderCustomizer newFullyQualifiedTypeName: org.springframework.boot.test.web.reactive.server.WebTestClientBuilderCustomizer --- ######################################################################################################################## # SpringBoot 2.3 type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_3 displayName: Upgrade to Spring Boot 2.3 description: 'Upgrade to Spring Boot 2.3 from any prior 2.x version.' recipeList: # Upgrade to 2.2.x from 2.1.x - org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_2 # Upgrade to 2.3.x from 2.2.x - org.openrewrite.maven.UpgradeDependencyVersion: groupId: org.springframework.boot artifactId: "*" newVersion: 2.3.x trustParent: true - org.openrewrite.maven.UpgradeParentVersion: groupId: org.springframework.boot artifactId: spring-boot-starter-parent newVersion: 2.3.x # Use recommended replacements for deprecated APIs - org.openrewrite.java.spring.boot2.MigrateRestClientBuilderCustomizerPackageName - org.openrewrite.java.spring.boot2.MigrateErrorPropertiesIncludeStackTraceConstants - org.openrewrite.java.spring.boot2.GetErrorAttributes # Update properties - org.openrewrite.java.spring.boot2.SpringBootProperties_2_3 --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.MigrateRestClientBuilderCustomizerPackageName displayName: Use `RestClientBuilderCustomizer` description: '`org.springframework.boot.autoconfigure.elasticsearch.rest.RestClientBuilderCustomizer` was deprecated in 2.3.' recipeList: - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: org.springframework.boot.autoconfigure.elasticsearch.rest.RestClientBuilderCustomizer newFullyQualifiedTypeName: org.springframework.boot.autoconfigure.elasticsearch.RestClientBuilderCustomizer ######################################################################################################################## # SpringBoot 2.4 --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_4 displayName: Upgrade to Spring Boot 2.4 description: 'Upgrade to Spring Boot 2.4 from any prior 2.x version.' recipeList: # JUnit Jupiter's vintage engine was removed in Spring Boot 2.4 - org.openrewrite.java.spring.boot2.SpringBoot2JUnit4to5Migration - org.openrewrite.java.spring.framework.UpgradeSpringFramework_5_3 - org.openrewrite.java.testing.junit5.JUnit5BestPractices # Upgrade to 2.3.x from 2.2.x - org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_3 # Upgrade to 2.4.x from 2.3.x - org.openrewrite.maven.UpgradeDependencyVersion: groupId: org.springframework.boot artifactId: "*" newVersion: 2.4.x trustParent: true - org.openrewrite.maven.UpgradeParentVersion: groupId: org.springframework.boot artifactId: spring-boot-starter-parent newVersion: 2.4.x - org.openrewrite.maven.RemoveExclusion: groupId: org.springframework.boot artifactId: spring-boot-starter-test exclusionGroupId: org.junit.vintage exclusionArtifactId: junit-vintage-engine - org.openrewrite.maven.RemoveExclusion: groupId: org.springframework.boot artifactId: spring-boot-starter-test exclusionGroupId: junit exclusionArtifactId: junit # Use recommended replacements for deprecated APIs - org.openrewrite.java.spring.boot2.MigrateUndertowServletWebServerFactoryIsEagerInitFilters - org.openrewrite.java.spring.boot2.MigrateUndertowServletWebServerFactorySetEagerInitFilters - org.openrewrite.java.spring.boot2.MigrateLoggingSystemPropertyConstants - org.openrewrite.java.spring.boot2.MigrateHsqlEmbeddedDatabaseConnection # Update properties - org.openrewrite.java.spring.boot2.SpringBootProperties_2_4 --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.MigrateUndertowServletWebServerFactoryIsEagerInitFilters displayName: Use `isEagerFilterInit()` description: '`org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory#isEagerInitFilters` was deprecated in 2.4 and are removed in 2.6.' recipeList: - org.openrewrite.java.ChangeMethodName: methodPattern: org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory isEagerInitFilters() newMethodName: isEagerFilterInit --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.MigrateUndertowServletWebServerFactorySetEagerInitFilters displayName: Use `setEagerFilterInit(boolean)` description: '`org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory#setEagerInitFilters` was deprecated in 2.4 and are removed in 2.6.' recipeList: - org.openrewrite.java.ChangeMethodName: methodPattern: org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory setEagerInitFilters(boolean) newMethodName: setEagerFilterInit ######################################################################################################################## # SpringBoot 2.5 --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_5 displayName: Upgrade to Spring Boot 2.5 description: 'Upgrade to Spring Boot 2.5 from any prior 2.x version.' recipeList: # Upgrade to 2.4.x from 2.3.x - org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_4 # Upgrade to 2.5.x from 2.4.x - org.openrewrite.maven.UpgradeDependencyVersion: groupId: org.springframework.boot artifactId: "*" newVersion: 2.5.x trustParent: true - org.openrewrite.maven.UpgradeParentVersion: groupId: org.springframework.boot artifactId: spring-boot-starter-parent newVersion: 2.5.x # Use recommended replacements for deprecated APIs - org.openrewrite.java.spring.boot2.MigrateEntityManagerFactoryDependsOnPostProcessorCustomizerPackageName # Update properties - org.openrewrite.java.spring.boot2.SpringBootProperties_2_5 - org.openrewrite.java.spring.boot2.SpringBootPropertiesManual_2_5 --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.spring.boot2.MigrateEntityManagerFactoryDependsOnPostProcessorCustomizerPackageName displayName: Use `EntityManagerFactoryDependsOnPostProcessor` description: '`org.springframework.boot.autoconfigure.data.jpa.EntityManagerFactoryDependsOnPostProcessor` was deprecated in 2.5 for removal in 2.7.' recipeList: - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: org.springframework.boot.autoconfigure.data.jpa.EntityManagerFactoryDependsOnPostProcessor newFullyQualifiedTypeName: org.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryDependsOnPostProcessor





© 2015 - 2025 Weber Informatics LLC | Privacy Policy