spring-boot-migrator icon indicating copy to clipboard operation
spring-boot-migrator copied to clipboard

CreateAutoconfigurationAction should be multi module aware

Open sanagaraj-pivotal opened this issue 3 years ago • 0 comments

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

Additional Information

sanagaraj-pivotal avatar Aug 25 '22 09:08 sanagaraj-pivotal