Migrate packages to modular starters
MSALMigrate to new packages used for autoconfiguration by Spring Boot 4.0 modules.
org. openrewrite. java. spring. boot4. MigrateAutoconfigurePackagesmod run . --recipe= org. openrewrite. java. spring. boot4. MigrateAutoconfigurePackagesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Rename package name
org.springframework.boot.autoconfigure.jms.activemqtoorg.springframework.boot.activemq.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.amqptoorg.springframework.boot.amqp.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.jms.artemistoorg.springframework.boot.artemis.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.batchtoorg.springframework.boot.batch.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.cachetoorg.springframework.boot.cache.autoconfigure - Change type
org.springframework.boot.test.autoconfigure.core.AutoConfigureCachetoorg.springframework.boot.cache.test.autoconfigure.AutoConfigureCache - Rename package name
org.springframework.boot.autoconfigure.cassandratoorg.springframework.boot.cassandra.autoconfigure - Change type
CassandraDataAutoConfigurationtoDataCassandraAutoConfiguration - Change type
CassandraReactiveDataAutoConfigurationtoDataCassandraReactiveAutoConfiguration - Change type
CassandraReactiveRepositoriesAutoConfigurationtoDataCassandraReactiveRepositoriesAutoConfiguration - Change type
CassandraRepositoriesAutoConfigurationtoDataCassandraRepositoriesAutoConfiguration - Rename package name
org.springframework.boot.autoconfigure.data.cassandratoorg.springframework.boot.data.cassandra.autoconfigure - Rename package name
org.springframework.boot.test.autoconfigure.data.cassandratoorg.springframework.boot.data.cassandra.test.autoconfigure - Change type
JpaRepositoriesAutoConfigurationtoDataJpaRepositoriesAutoConfiguration - Change type
JpaRepositoriesRegistrartoDataJpaRepositoriesRegistrar - Rename package name
org.springframework.boot.autoconfigure.data.jpatoorg.springframework.boot.data.jpa.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.domaintoorg.springframework.boot.persistence.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.daotoorg.springframework.boot.persistence.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.orm.jpatoorg.springframework.boot.hibernate.autoconfigure - Rename package name
org.springframework.boot.actuate.autoconfigure.metrics.orm.jpatoorg.springframework.boot.hibernate.autoconfigure.metrics - Change type
org.springframework.boot.test.autoconfigure.orm.jpa.AutoConfigureTestEntityManagertoorg.springframework.boot.jpa.test.autoconfigure.AutoConfigureTestEntityManager - Change type
org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagertoorg.springframework.boot.jpa.test.autoconfigure.TestEntityManager - Change type
org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfigurationtoorg.springframework.boot.jpa.test.autoconfigure.TestEntityManagerAutoConfiguration - Rename package name
org.springframework.boot.test.autoconfigure.orm.jpatoorg.springframework.boot.data.jpa.test.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.jdbctoorg.springframework.boot.jdbc.autoconfigure - Rename package name
org.springframework.boot.test.autoconfigure.jdbctoorg.springframework.boot.jdbc.test.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.liquibasetoorg.springframework.boot.liquibase.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.flywaytoorg.springframework.boot.flyway.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.graphqltoorg.springframework.boot.graphql.autoconfigure - Change type
MongoDataAutoConfigurationtoDataMongoAutoConfiguration - Change type
MongoReactiveDataAutoConfigurationtoDataMongoReactiveAutoConfiguration - Change type
MongoRepositoriesAutoConfigurationtoDataMongoRepositoriesAutoConfiguration - Change type
MongoReactiveRepositoriesAutoConfigurationtoDataMongoReactiveRepositoriesAutoConfiguration - Rename package name
org.springframework.boot.autoconfigure.data.mongotoorg.springframework.boot.data.mongodb.autoconfigure - Rename package name
org.springframework.boot.test.autoconfigure.data.mongotoorg.springframework.boot.data.mongodb.test.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.mongotoorg.springframework.boot.mongodb.autoconfigure - Rename package name
org.springframework.boot.actuate.autoconfigure.data.mongotoorg.springframework.boot.mongodb.autoconfigure.health - Rename package name
org.springframework.boot.actuate.autoconfigure.metrics.mongotoorg.springframework.boot.mongodb.autoconfigure.metrics - Rename package name
org.springframework.boot.actuate.data.mongotoorg.springframework.boot.mongodb.health - Change type
StreamsBuilderFactoryBeanCustomizertoStreamsBuilderFactoryBeanConfigurer - Rename package name
org.springframework.boot.autoconfigure.kafkatoorg.springframework.boot.kafka.autoconfigure - Replace constant with another constant
- Replace constant with another constant
- Change type
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfigurationtoorg.springframework.boot.security.autoconfigure.SecurityAutoConfiguration - Change type
org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfigurationtoorg.springframework.boot.security.autoconfigure.UserDetailsServiceAutoConfiguration - Change type
org.springframework.boot.autoconfigure.security.servlet.PathRequesttoorg.springframework.boot.security.autoconfigure.web.servlet.PathRequest - Change type
org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfigurationtoorg.springframework.boot.security.autoconfigure.web.servlet.SecurityFilterAutoConfiguration - Change type
org.springframework.boot.autoconfigure.security.servlet.StaticResourceRequesttoorg.springframework.boot.security.autoconfigure.web.servlet.StaticResourceRequest - Change type
org.springframework.boot.autoconfigure.security.ConditionalOnDefaultWebSecuritytoorg.springframework.boot.security.autoconfigure.web.servlet.ConditionalOnDefaultWebSecurity - Change type
org.springframework.boot.autoconfigure.security.DefaultWebSecurityConditiontoorg.springframework.boot.security.autoconfigure.web.servlet.DefaultWebSecurityCondition - Change type
org.springframework.boot.autoconfigure.security.StaticResourceLocationtoorg.springframework.boot.security.autoconfigure.web.StaticResourceLocation - Change type
org.springframework.boot.autoconfigure.security.reactive.PathRequesttoorg.springframework.boot.security.autoconfigure.web.reactive.PathRequest - Change type
org.springframework.boot.autoconfigure.security.reactive.ReactiveUserDetailsServiceAutoConfigurationtoorg.springframework.boot.security.autoconfigure.ReactiveUserDetailsServiceAutoConfiguration - Change type
org.springframework.boot.autoconfigure.security.reactive.StaticResourceRequesttoorg.springframework.boot.security.autoconfigure.web.reactive.StaticResourceRequest - Rename package name
org.springframework.boot.autoconfigure.security.oauth2.server.servlettoorg.springframework.boot.security.oauth2.server.authorization.autoconfigure.servlet - Rename package name
org.springframework.boot.autoconfigure.security.oauth2.clienttoorg.springframework.boot.security.oauth2.client.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.security.oauth2.resourcetoorg.springframework.boot.security.oauth2.server.resource.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.security.saml2toorg.springframework.boot.security.saml2.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.securitytoorg.springframework.boot.security.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.validationtoorg.springframework.boot.validation.autoconfigure - Rename package name
org.springframework.boot.autoconfigure.web.servlettoorg.springframework.boot.webmvc.autoconfigure - Rename package name
org.springframework.boot.test.autoconfigure.web.servlettoorg.springframework.boot.webmvc.test.autoconfigure - Change type
org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTesttoorg.springframework.boot.webflux.test.autoconfigure.WebFluxTest - Change type
org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebFluxtoorg.springframework.boot.webflux.test.autoconfigure.AutoConfigureWebFlux - Change type
org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTypeExcludeFiltertoorg.springframework.boot.webflux.test.autoconfigure.WebFluxTypeExcludeFilter - Change type
org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClienttoorg.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient - Change type
org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientAutoConfigurationtoorg.springframework.boot.webtestclient.autoconfigure.WebTestClientAutoConfiguration - Change type
org.springframework.boot.test.autoconfigure.web.reactive.SpringBootWebTestClientBuilderCustomizertoorg.springframework.boot.webtestclient.autoconfigure.SpringBootWebTestClientBuilderCustomizer - Change type
org.springframework.boot.test.web.reactive.server.WebTestClientBuilderCustomizertoorg.springframework.boot.webtestclient.autoconfigure.WebTestClientBuilderCustomizer - Rename package name
org.springframework.boot.autoconfigure.webservicestoorg.springframework.boot.webservices.autoconfigure - Rename package name
org.springframework.boot.test.autoconfigure.webservicestoorg.springframework.boot.webservices.test.autoconfigure - Rename package name
org.springframework.boot.web.clienttoorg.springframework.boot.restclient - Rename package name
org.springframework.boot.autoconfigure.web.clienttoorg.springframework.boot.restclient.autoconfigure - Rename package name
org.springframework.boot.test.autoconfigure.web.clienttoorg.springframework.boot.restclient.test.autoconfigure - Rename package name
org.springframework.boot.test.web.clienttoorg.springframework.boot.resttestclient - Rename package name
org.springframework.boot.actuate.autoconfigure.security.servlettoorg.springframework.boot.security.autoconfigure.actuate.web.servlet - Change type
org.springframework.boot.actuate.health.AdditionalHealthEndpointPathtoorg.springframework.boot.health.actuate.endpoint.AdditionalHealthEndpointPath - Change type
CompositeHealthtoCompositeHealthDescriptor - Change type
HealthComponenttoHealthDescriptor - Change type
org.springframework.boot.actuate.health.HealthEndpointtoorg.springframework.boot.health.actuate.endpoint.HealthEndpoint - Change type
org.springframework.boot.actuate.health.HealthEndpointGrouptoorg.springframework.boot.health.actuate.endpoint.HealthEndpointGroup - Change type
org.springframework.boot.actuate.health.HealthEndpointGroupstoorg.springframework.boot.health.actuate.endpoint.HealthEndpointGroups - Change type
org.springframework.boot.actuate.health.HealthEndpointGroupsPostProcessortoorg.springframework.boot.health.actuate.endpoint.HealthEndpointGroupsPostProcessor - Change type
org.springframework.boot.actuate.health.HealthEndpointSupporttoorg.springframework.boot.health.actuate.endpoint.HealthEndpointSupport - Change type
org.springframework.boot.actuate.health.HealthEndpointWebExtensiontoorg.springframework.boot.health.actuate.endpoint.HealthEndpointWebExtension - Change type
org.springframework.boot.actuate.health.HealthEndpointWebExtensionRuntimeHintstoorg.springframework.boot.health.actuate.endpoint.HealthEndpointWebExtensionRuntimeHints - Change type
org.springframework.boot.actuate.health.HttpCodeStatusMappertoorg.springframework.boot.health.actuate.endpoint.HttpCodeStatusMapper - Change type
org.springframework.boot.actuate.health.ReactiveHealthEndpointWebExtensiontoorg.springframework.boot.health.actuate.endpoint.ReactiveHealthEndpointWebExtension - Change type
org.springframework.boot.actuate.health.SimpleHttpCodeStatusMappertoorg.springframework.boot.health.actuate.endpoint.SimpleHttpCodeStatusMapper - Change type
org.springframework.boot.actuate.health.SimpleStatusAggregatortoorg.springframework.boot.health.actuate.endpoint.SimpleStatusAggregator - Change type
org.springframework.boot.actuate.health.StatusAggregatortoorg.springframework.boot.health.actuate.endpoint.StatusAggregator - Change type
org.springframework.boot.actuate.health.DefaultHealthContributorRegistrytoorg.springframework.boot.health.registry.DefaultHealthContributorRegistry - Change type
org.springframework.boot.actuate.health.DefaultReactiveHealthContributorRegistrytoorg.springframework.boot.health.registry.DefaultReactiveHealthContributorRegistry - Change type
org.springframework.boot.actuate.health.HealthContributorRegistrytoorg.springframework.boot.health.registry.HealthContributorRegistry - Change type
org.springframework.boot.actuate.health.ReactiveHealthContributorRegistrytoorg.springframework.boot.health.registry.ReactiveHealthContributorRegistry - Rename package name
org.springframework.boot.actuate.healthtoorg.springframework.boot.health.contributor - Change method name
org.springframework.boot.health.contributor.HealthIndicator getHealth(..)tohealth - Change type
org.springframework.boot.autoconfigure.jackson.JacksonAutoConfigurationtoorg.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration