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

Apply `initialize-spring-boot-migration` on a Boot application might downgrade Boot version

Open fabapp2 opened this issue 3 years ago • 3 comments

Describe the bug Scanning the (see zip) Spring Boot application and applying initialize-spring-boot-migration downgrades the Spring Boot version from 2.7.4 to 2.7.3

To Reproduce see above

Expected behavior The version should be untouched if it is same or more recent than the declared version.

fabapp2 avatar Sep 29 '22 10:09 fabapp2

demo.zip

Use this project to replicate the issue

sanagaraj-pivotal avatar Sep 29 '22 10:09 sanagaraj-pivotal

In the above project the condition to check if a project is a Spring app is by checking if the app uses SpringBootApplication Annotation in the project since the above project does not import appropriate jar SpringBootApplication Annotation was not resolved and hence SBM inferred that the project is not a spring project.

sanagaraj-pivotal avatar Sep 29 '22 16:09 sanagaraj-pivotal

Hi @sanagaraj-pivotal But the recipe (some action) downgrades the dependency, this should not happen imho.

fabapp2 avatar Sep 30 '22 23:09 fabapp2