rewrite-spring icon indicating copy to clipboard operation
rewrite-spring copied to clipboard

UpgradeSpringBoot_3_3 setting wrong Spring Cloud version

Open timbuethe opened this issue 8 months ago • 6 comments

I am using

  • OpenRewrite 5.33.0
  • Maven plugin 5.33.0
  • rewrite-spring 5.12.0

I am using the Maven plugin, and my project is a single module project.

             <plugin>
                <groupId>org.openrewrite.maven</groupId>
                <artifactId>rewrite-maven-plugin</artifactId>
                <version>5.33.0</version>
                <configuration>
                    <activeRecipes>
                        <recipe>org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3</recipe>
                    </activeRecipes>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.openrewrite.recipe</groupId>
                        <artifactId>rewrite-spring</artifactId>
                        <version>5.12.0</version>
                    </dependency>
                </dependencies>
            </plugin>

What did you expect to see / What did you see instead?

When running org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_2 Spring Cloud version is set to 2023.0.2, as expected. But if we run org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3 instead, the version is set to 2021.0.9.

example project to reproduce the issue:

OpenRewriteSpringCloudMigration.zip

timbuethe avatar Jun 12 '24 09:06 timbuethe