spring-boot-migrator
spring-boot-migrator copied to clipboard
CreateAutoconfigurationAction should be multi module aware
What needs to be done
CreateAutoconfigurationAction works only with single module.
Background:
CreateAutoconfigurationAction is an action which serves the move of spring boot 2.7 to spring boot 3.0.
It finds a file named META-INF/spring.factoriesand one of its keys to file META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
Acceptance Criteria
Given We have a spring multi module (version 2.7) with following folder structure
App
|-- spring-app
|------ pom.xml
|------ src
|--------- main
|------------ resources
|--------------- META-INF
|------------------ spring.factories
pom.xml
When apply action is applied on the above project
Then The CreateAutoConfiguration should produce following structure:
App
|-- spring-app
|------ pom.xml
|------ src
|--------- main
|------------ resources
|--------------- META-INF
|------------------ spring
|--------------------- org.springframework.boot.autoconfigure.AutoConfiguration.imports
pom.xml