openrewrite / rewrite-jackson

OpenRewrite recipes for Jackson.
Apache License 2.0
2 stars 2 forks source link

Recipe - Align Jackson dependencies using the BOM #2

Open yeikel opened 1 year ago

yeikel commented 1 year ago

https://github.com/FasterXML/jackson-bom

Follow up question: Can we create a generic recipe to replace manual dependencies with a BOM?

There are many BOMS out there, would it be more useful to create dedicated recipes?

Related issue https://github.com/openrewrite/rewrite-testing-frameworks/issues/318

sambsnyd commented 1 year ago

Yes, creating such a recipe is definitely possible. The coordinates of the bom could be specified to the recipe, which would download and resolve the bom. Then knowing which dependencies it manages, it would know what version numbers to remove. Would be very handy.

yeikel commented 1 year ago

Yes, creating such a recipe is definitely possible. The coordinates of the bom could be specified to the recipe, which would download and resolve the bom. Then knowing which dependencies it manages, it would know what version numbers to remove. Would be very handy.

Thank you for confirming. I created https://github.com/openrewrite/rewrite/issues/2887

This and openrewrite/rewrite#318 could be converted to YAML-only recipes afterwards for convenience

yeikel commented 1 year ago

Yes, creating such a recipe is definitely possible. The coordinates of the bom could be specified to the recipe, which would download and resolve the bom. Then knowing which dependencies it manages, it would know what version numbers to remove. Would be very handy.

@sambsnyd Should I create other BOM related recipes as separate issues? To be implemented in the future using YAML-only recipes

For example there are a couple that should be useful: