openrewrite / rewrite-apache

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

Migrate from Apache Commons Collections to Commons Collections4 #5

Closed rdifrango closed 3 months ago

rdifrango commented 2 years ago

Teams often are using org.apache.commons.collections instead of org.apache.commons.collections4 so I would like a recipe that migrates to org.apache.commons.collections4.

I see the recipe as:

rdifrango commented 2 years ago

I figured out that there's also a list of replacements that need to be handled as outlined here:

https://issues.apache.org/jira/browse/COLLECTIONS-432

pway99 commented 2 years ago

Thanks for the suggestion @rdifrango !

bsmahi commented 3 months ago

Hi @timtebeek Can I pickup this one for creating a recipe of removeDependency of commons-collections and addDependency commons-collections4 in the pom.xml

Thanks, Mahi

timtebeek commented 3 months ago

Thanks for the offer to help @bsmahi ! I think this had already been picked up and completed by @sullis in https://github.com/openrewrite/rewrite-apache/pull/10

If not I'd love to hear what else we might need!