Are there plans to support upgrades for Spring Cloud Stream? #4976
-
Hello, thanks for the fascinating tool! I ran the upgrade recipe to boot 2.7 on the below project using Maven CLI, but the application ran into an error when running because My Environment
Run: mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-spring:LATEST \
-Drewrite.activeRecipes=org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_7 Error occurred on runtime: 2025-01-31 17:49:39.771 ERROR 64501 --- [ main] o.s.boot.SpringApplication : Application run failed
java.lang.IllegalArgumentException: Could not find class [org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration]
at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:341) ~[spring-core-5.3.31.jar:5.3.31]
at org.springframework.core.annotation.TypeMappedAnnotation.adapt(TypeMappedAnnotation.java:474) ~[spring-core-5.3.31.jar:5.3.31]
at org.springframework.core.annotation.TypeMappedAnnotation.getValue(TypeMappedAnnotation.java:397) ~[spring-core-5.3.31.jar:5.3.31]
at org.springframework.core.annotation.TypeMappedAnnotation.asMap(TypeMappedAnnotation.java:283) ~[spring-core-5.3.31.jar:5.3.31]
at org.springframework.core.annotation.AbstractMergedAnnotation.asAnnotationAttributes(AbstractMergedAnnotation.java:193) ~[spring-core-5.3.31.jar:5.3.31]
at org.springframework.core.type.AnnotatedTypeMetadata.getAnnotationAttributes(AnnotatedTypeMetadata.java:106) ~[spring-core-5.3.31.jar:5.3.31]
at org.springframework.core.type.AnnotatedTypeMetadata.getAnnotationAttributes(AnnotatedTypeMetadata.java:81) ~[spring-core-5.3.31.jar:5.3.31]
at org.springframework.context.annotation.AnnotationConfigUtils.attributesFor(AnnotationConfigUtils.java:285) ~[spring-context-5.3.31.jar:5.3.31]
at org.springframework.context.annotation.AnnotationBeanNameGenerator.determineBeanNameFromAnnotation(AnnotationBeanNameGenerator.java:103) ~[spring-context-5.3.31.jar:5.3.31]
... I read the OpenRewrite documentation but could not find a page for Spring Cloud Stream, so do you have plans to support upgrading Spring Cloud Stream? Or can I contribute by adding a recipe to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @seachicken 👋 , |
Beta Was this translation helpful? Give feedback.
-
Thank you, first, I'll open an issue with rewrite-spring |
Beta Was this translation helpful? Give feedback.
Hi @seachicken 👋 ,
we support Spring Cloud migrations from Version 2022, see https://docs.openrewrite.org/recipes/java/spring.I don't know which version is needed for Spring Boot 2.7 ATM.
If you want to contribute, we would be very happy. You can start by adding an issue here /~https://github.com/openrewrite/rewrite-spring/issues and prepare which steps are needed.
From there, the Community (you included) can start adding the needed recipes, if you need any further guidance, we are there to help. =)