add OpenRewrite recipes for Apache Commons#16246
add OpenRewrite recipes for Apache Commons#16246sullis wants to merge 1 commit intoapache:masterfrom
Conversation
kgyrtkirk
left a comment
There was a problem hiding this comment.
since there are no usage of these libs - can't we just ban there usages somehow?
I'm not against enabling these rules - but my experience so far is that openrewrite is not a fast piece of equipment to work with - looking at 2 recent runs it seem to me that adding these 2 rules have added 30 extra seconds to its runtime
however...taking a closer look it seems like the runtime fluctuates quite a bit:
What are your experiences? Is it just the "entry cost" of using these recipes are a bit higher...and it doesn't really matter how many recipes it runs?
| type: specs.openrewrite.org/v1beta/recipe | ||
| name: org.apache.druid.RewriteRules | ||
| recipeList: | ||
| - org.openrewrite.apache.commons.math.UpgradeApacheCommonsMath_2_3 |
There was a problem hiding this comment.
it seems to me that there were no usages of commons-math 2 inside the project;
and it seems to me that the math2 library is not even loaded as a dependency
I wonder in the above case why would we need the upgrade recipes for it?
| name: org.apache.druid.RewriteRules | ||
| recipeList: | ||
| - org.openrewrite.apache.commons.math.UpgradeApacheCommonsMath_2_3 | ||
| - org.openrewrite.apache.commons.collections.UpgradeApacheCommonsCollections_3_4 |
There was a problem hiding this comment.
I don't see common-collections 3 being used at all - but it was pulled in into the project:
- opencsv 5.8 -> commons-beanutils:1.9.4 -> commons-collections:3.2.2
- kafka_test -> commons-validator:commons-validator:jar:1.7:test -> commons-collections:3.2.2
it seems to me that there are only 2 classes being used from commons-collection4
|
in the absense of answers: I'll close this PR as I still don't understand why the need to enable these recipies |
|
I was looking into recent dependabot PRs and it seemed like there are still |
Description
enhance OpenRewrite configuration with the rewrite-apache library
Key changed/added classes in this PR
This PR has: