Maven dependency analyzer automatic cleanup #5868
-
|
Hello, I looked around the internet for automated processes that remove unused dependencies, add undeclared dependencies and move non-test scoped to the test-scoped, but I couldn't find anything. So I thought of OpenRewrite! I am using OpenRewrite for other LCM tasks, like migrating to JUnit5 or Assertj, and there is a lot of Maven recipes already available, but I feel like there is a lot of potential to automate the process of Do you also see the potential? Would it actually be feasible to create a recipe like that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
hi! Yes we've put some work towards this at Moderne, resulting in the following (proprietary) recipe: This recipe was built over the span of two live streaming sessions, in case you're interested to follow along: I hope that's helpful to you still, even if access to that recipe requires a relationship with Moderne. |
Beta Was this translation helpful? Give feedback.
hi! Yes we've put some work towards this at Moderne, resulting in the following (proprietary) recipe:
https://docs.openrewrite.org/recipes/java/dependencies/removeunuseddependencies
This recipe was built over the span of two live streaming sessions, in case you're interested to follow along:
I hope that's helpful to you still, even if access to that recipe requires a relationship with Moderne.