Closed eocantu closed 1 week ago
Thanks for the quick reproducer! Looking at this recipe I think the arguments have shifted such that we accidentally pass in LocalServerPort
as a classifier. Likely an easy fix. Is that something you'd be willing to contribute?
https://github.com/openrewrite/rewrite-spring/blob/24af0a4b05b8620028611bc1dfc15fa981a02eb7/src/main/java/org/openrewrite/java/spring/boot2/MigrateLocalServerPortAnnotation.java#L64-L74
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a multi-module project: https://github.com/eocantu/spring-boot-demo
What is the smallest, simplest way to reproduce the problem?
The project referenced above is a minimalistic multi-module project using
LocalServerPort
. The error can be recreated as follows:What did you expect to see?
I expected to not see a dependency added, or if it was added, not added with a classifier.
What did you see instead?
What is the full stack trace of any errors you encountered?
No errors observed