Migrate packages to modular starters

MSAL

Migrate to new packages used for autoconfiguration by Spring Boot 4.0 modules.

org.openrewrite.java.spring.boot4.MigrateAutoconfigurePackages
mod run . --recipe=org.openrewrite.java.spring.boot4.MigrateAutoconfigurePackages

Install 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.

  1. Rename package name org.springframework.boot.autoconfigure.jms.activemq to org.springframework.boot.activemq.autoconfigure
  2. Rename package name org.springframework.boot.autoconfigure.amqp to org.springframework.boot.amqp.autoconfigure
  3. Rename package name org.springframework.boot.autoconfigure.jms.artemis to org.springframework.boot.artemis.autoconfigure
  4. Rename package name org.springframework.boot.autoconfigure.batch to org.springframework.boot.batch.autoconfigure
  5. Rename package name org.springframework.boot.autoconfigure.cache to org.springframework.boot.cache.autoconfigure
  6. Change type org.springframework.boot.test.autoconfigure.core.AutoConfigureCache to org.springframework.boot.cache.test.autoconfigure.AutoConfigureCache
  7. Rename package name org.springframework.boot.autoconfigure.cassandra to org.springframework.boot.cassandra.autoconfigure
  8. Change type CassandraDataAutoConfiguration to DataCassandraAutoConfiguration
  9. Change type CassandraReactiveDataAutoConfiguration to DataCassandraReactiveAutoConfiguration
  10. Change type CassandraReactiveRepositoriesAutoConfiguration to DataCassandraReactiveRepositoriesAutoConfiguration
  11. Change type CassandraRepositoriesAutoConfiguration to DataCassandraRepositoriesAutoConfiguration
  12. Rename package name org.springframework.boot.autoconfigure.data.cassandra to org.springframework.boot.data.cassandra.autoconfigure
  13. Rename package name org.springframework.boot.test.autoconfigure.data.cassandra to org.springframework.boot.data.cassandra.test.autoconfigure
  14. Change type JpaRepositoriesAutoConfiguration to DataJpaRepositoriesAutoConfiguration
  15. Change type JpaRepositoriesRegistrar to DataJpaRepositoriesRegistrar
  16. Rename package name org.springframework.boot.autoconfigure.data.jpa to org.springframework.boot.data.jpa.autoconfigure
  17. Rename package name org.springframework.boot.autoconfigure.domain to org.springframework.boot.persistence.autoconfigure
  18. Rename package name org.springframework.boot.autoconfigure.dao to org.springframework.boot.persistence.autoconfigure
  19. Rename package name org.springframework.boot.autoconfigure.orm.jpa to org.springframework.boot.hibernate.autoconfigure
  20. Rename package name org.springframework.boot.actuate.autoconfigure.metrics.orm.jpa to org.springframework.boot.hibernate.autoconfigure.metrics
  21. Change type org.springframework.boot.test.autoconfigure.orm.jpa.AutoConfigureTestEntityManager to org.springframework.boot.jpa.test.autoconfigure.AutoConfigureTestEntityManager
  22. Change type org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManager to org.springframework.boot.jpa.test.autoconfigure.TestEntityManager
  23. Change type org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration to org.springframework.boot.jpa.test.autoconfigure.TestEntityManagerAutoConfiguration
  24. Rename package name org.springframework.boot.test.autoconfigure.orm.jpa to org.springframework.boot.data.jpa.test.autoconfigure
  25. Rename package name org.springframework.boot.autoconfigure.jdbc to org.springframework.boot.jdbc.autoconfigure
  26. Rename package name org.springframework.boot.test.autoconfigure.jdbc to org.springframework.boot.jdbc.test.autoconfigure
  27. Rename package name org.springframework.boot.autoconfigure.liquibase to org.springframework.boot.liquibase.autoconfigure
  28. Rename package name org.springframework.boot.autoconfigure.flyway to org.springframework.boot.flyway.autoconfigure
  29. Rename package name org.springframework.boot.autoconfigure.graphql to org.springframework.boot.graphql.autoconfigure
  30. Change type MongoDataAutoConfiguration to DataMongoAutoConfiguration
  31. Change type MongoReactiveDataAutoConfiguration to DataMongoReactiveAutoConfiguration
  32. Change type MongoRepositoriesAutoConfiguration to DataMongoRepositoriesAutoConfiguration
  33. Change type MongoReactiveRepositoriesAutoConfiguration to DataMongoReactiveRepositoriesAutoConfiguration
  34. Rename package name org.springframework.boot.autoconfigure.data.mongo to org.springframework.boot.data.mongodb.autoconfigure
  35. Rename package name org.springframework.boot.test.autoconfigure.data.mongo to org.springframework.boot.data.mongodb.test.autoconfigure
  36. Rename package name org.springframework.boot.autoconfigure.mongo to org.springframework.boot.mongodb.autoconfigure
  37. Rename package name org.springframework.boot.actuate.autoconfigure.data.mongo to org.springframework.boot.mongodb.autoconfigure.health
  38. Rename package name org.springframework.boot.actuate.autoconfigure.metrics.mongo to org.springframework.boot.mongodb.autoconfigure.metrics
  39. Rename package name org.springframework.boot.actuate.data.mongo to org.springframework.boot.mongodb.health
  40. Change type StreamsBuilderFactoryBeanCustomizer to StreamsBuilderFactoryBeanConfigurer
  41. Rename package name org.springframework.boot.autoconfigure.kafka to org.springframework.boot.kafka.autoconfigure
  42. Replace constant with another constant
  43. Replace constant with another constant
  44. Change type org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration to org.springframework.boot.security.autoconfigure.SecurityAutoConfiguration
  45. Change type org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration to org.springframework.boot.security.autoconfigure.UserDetailsServiceAutoConfiguration
  46. Change type org.springframework.boot.autoconfigure.security.servlet.PathRequest to org.springframework.boot.security.autoconfigure.web.servlet.PathRequest
  47. Change type org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration to org.springframework.boot.security.autoconfigure.web.servlet.SecurityFilterAutoConfiguration
  48. Change type org.springframework.boot.autoconfigure.security.servlet.StaticResourceRequest to org.springframework.boot.security.autoconfigure.web.servlet.StaticResourceRequest
  49. Change type org.springframework.boot.autoconfigure.security.ConditionalOnDefaultWebSecurity to org.springframework.boot.security.autoconfigure.web.servlet.ConditionalOnDefaultWebSecurity
  50. Change type org.springframework.boot.autoconfigure.security.DefaultWebSecurityCondition to org.springframework.boot.security.autoconfigure.web.servlet.DefaultWebSecurityCondition
  51. Change type org.springframework.boot.autoconfigure.security.StaticResourceLocation to org.springframework.boot.security.autoconfigure.web.StaticResourceLocation
  52. Change type org.springframework.boot.autoconfigure.security.reactive.PathRequest to org.springframework.boot.security.autoconfigure.web.reactive.PathRequest
  53. Change type org.springframework.boot.autoconfigure.security.reactive.ReactiveUserDetailsServiceAutoConfiguration to org.springframework.boot.security.autoconfigure.ReactiveUserDetailsServiceAutoConfiguration
  54. Change type org.springframework.boot.autoconfigure.security.reactive.StaticResourceRequest to org.springframework.boot.security.autoconfigure.web.reactive.StaticResourceRequest
  55. Rename package name org.springframework.boot.autoconfigure.security.oauth2.server.servlet to org.springframework.boot.security.oauth2.server.authorization.autoconfigure.servlet
  56. Rename package name org.springframework.boot.autoconfigure.security.oauth2.client to org.springframework.boot.security.oauth2.client.autoconfigure
  57. Rename package name org.springframework.boot.autoconfigure.security.oauth2.resource to org.springframework.boot.security.oauth2.server.resource.autoconfigure
  58. Rename package name org.springframework.boot.autoconfigure.security.saml2 to org.springframework.boot.security.saml2.autoconfigure
  59. Rename package name org.springframework.boot.autoconfigure.security to org.springframework.boot.security.autoconfigure
  60. Rename package name org.springframework.boot.autoconfigure.validation to org.springframework.boot.validation.autoconfigure
  61. Rename package name org.springframework.boot.autoconfigure.web.servlet to org.springframework.boot.webmvc.autoconfigure
  62. Rename package name org.springframework.boot.test.autoconfigure.web.servlet to org.springframework.boot.webmvc.test.autoconfigure
  63. Change type org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest to org.springframework.boot.webflux.test.autoconfigure.WebFluxTest
  64. Change type org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebFlux to org.springframework.boot.webflux.test.autoconfigure.AutoConfigureWebFlux
  65. Change type org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTypeExcludeFilter to org.springframework.boot.webflux.test.autoconfigure.WebFluxTypeExcludeFilter
  66. Change type org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient to org.springframework.boot.webtestclient.autoconfigure.AutoConfigureWebTestClient
  67. Change type org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientAutoConfiguration to org.springframework.boot.webtestclient.autoconfigure.WebTestClientAutoConfiguration
  68. Change type org.springframework.boot.test.autoconfigure.web.reactive.SpringBootWebTestClientBuilderCustomizer to org.springframework.boot.webtestclient.autoconfigure.SpringBootWebTestClientBuilderCustomizer
  69. Change type org.springframework.boot.test.web.reactive.server.WebTestClientBuilderCustomizer to org.springframework.boot.webtestclient.autoconfigure.WebTestClientBuilderCustomizer
  70. Rename package name org.springframework.boot.autoconfigure.webservices to org.springframework.boot.webservices.autoconfigure
  71. Rename package name org.springframework.boot.test.autoconfigure.webservices to org.springframework.boot.webservices.test.autoconfigure
  72. Rename package name org.springframework.boot.web.client to org.springframework.boot.restclient
  73. Rename package name org.springframework.boot.autoconfigure.web.client to org.springframework.boot.restclient.autoconfigure
  74. Rename package name org.springframework.boot.test.autoconfigure.web.client to org.springframework.boot.restclient.test.autoconfigure
  75. Rename package name org.springframework.boot.test.web.client to org.springframework.boot.resttestclient
  76. Rename package name org.springframework.boot.actuate.autoconfigure.security.servlet to org.springframework.boot.security.autoconfigure.actuate.web.servlet
  77. Change type org.springframework.boot.actuate.health.AdditionalHealthEndpointPath to org.springframework.boot.health.actuate.endpoint.AdditionalHealthEndpointPath
  78. Change type CompositeHealth to CompositeHealthDescriptor
  79. Change type HealthComponent to HealthDescriptor
  80. Change type org.springframework.boot.actuate.health.HealthEndpoint to org.springframework.boot.health.actuate.endpoint.HealthEndpoint
  81. Change type org.springframework.boot.actuate.health.HealthEndpointGroup to org.springframework.boot.health.actuate.endpoint.HealthEndpointGroup
  82. Change type org.springframework.boot.actuate.health.HealthEndpointGroups to org.springframework.boot.health.actuate.endpoint.HealthEndpointGroups
  83. Change type org.springframework.boot.actuate.health.HealthEndpointGroupsPostProcessor to org.springframework.boot.health.actuate.endpoint.HealthEndpointGroupsPostProcessor
  84. Change type org.springframework.boot.actuate.health.HealthEndpointSupport to org.springframework.boot.health.actuate.endpoint.HealthEndpointSupport
  85. Change type org.springframework.boot.actuate.health.HealthEndpointWebExtension to org.springframework.boot.health.actuate.endpoint.HealthEndpointWebExtension
  86. Change type org.springframework.boot.actuate.health.HealthEndpointWebExtensionRuntimeHints to org.springframework.boot.health.actuate.endpoint.HealthEndpointWebExtensionRuntimeHints
  87. Change type org.springframework.boot.actuate.health.HttpCodeStatusMapper to org.springframework.boot.health.actuate.endpoint.HttpCodeStatusMapper
  88. Change type org.springframework.boot.actuate.health.ReactiveHealthEndpointWebExtension to org.springframework.boot.health.actuate.endpoint.ReactiveHealthEndpointWebExtension
  89. Change type org.springframework.boot.actuate.health.SimpleHttpCodeStatusMapper to org.springframework.boot.health.actuate.endpoint.SimpleHttpCodeStatusMapper
  90. Change type org.springframework.boot.actuate.health.SimpleStatusAggregator to org.springframework.boot.health.actuate.endpoint.SimpleStatusAggregator
  91. Change type org.springframework.boot.actuate.health.StatusAggregator to org.springframework.boot.health.actuate.endpoint.StatusAggregator
  92. Change type org.springframework.boot.actuate.health.DefaultHealthContributorRegistry to org.springframework.boot.health.registry.DefaultHealthContributorRegistry
  93. Change type org.springframework.boot.actuate.health.DefaultReactiveHealthContributorRegistry to org.springframework.boot.health.registry.DefaultReactiveHealthContributorRegistry
  94. Change type org.springframework.boot.actuate.health.HealthContributorRegistry to org.springframework.boot.health.registry.HealthContributorRegistry
  95. Change type org.springframework.boot.actuate.health.ReactiveHealthContributorRegistry to org.springframework.boot.health.registry.ReactiveHealthContributorRegistry
  96. Rename package name org.springframework.boot.actuate.health to org.springframework.boot.health.contributor
  97. Change method name org.springframework.boot.health.contributor.HealthIndicator getHealth(..) to health
  98. Change type org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration to org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration