spring-projects-experimental / spring-boot-migrator

Spring Boot Migrator (SBM) is a tool for automated code migrations to upgrade or migrate to Spring Boot
Apache License 2.0
439 stars 88 forks source link

Fix with different behaviour in Maven or IntelliJ #897

Closed fabapp2 closed 8 months ago

fabapp2 commented 1 year ago

ConvertJaxRsAnnotationsTest.convertJaxRsMethodWithoutPathToSpringMvc(); is failing on main. When running in Maven, these (not-expected when the test was written) two dependencies:

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

The test is @Disabled as this is currently out of scope

bottemav commented 8 months ago

The imports are not added because spring-boot-starter-web is not added as dependency. I'm preparing a fix.