-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto generate META-INF content for DataTypeTransformer #11775
Conversation
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🤖 CI automation will test this PR automatically. 🐫 Apache Camel Committers, please review the following items:
|
Yeah okay yeah so @christophd created this by hand at first, and yeah we should migrate to make it standard and generated like everything else in camel-core project. And since they are transformer then they should ideally use And then you need to change the For Camel 4.2 we can then add in the release notes about this change (though no camel end users is using this) |
Thanks @davsclaus, this was my gut feeling, I'll update the PR accordingly. |
Thanks folks! This makes much more sense. Sorry for the folder structure confusion that I created manually |
After this and the release 4.1.0 of camel-kamelets, we can maybe move the transformers from camel-kamelets repo to camel repo and autogenerating |
Ah good idea, can we create a JIRA or github issue for this so we wont forget |
There are some data type transformer implementations still living in the camel-kamelets-utils library. Can we use the same SpiGeneratorMojo to auto generate there? |
Wouldn't make more sense to move them in camel repo? |
@davsclaus @oscerd I did not see your comments before writing my last comment. Yes, it makes sense to move the transformers into camel repo and use auto generation there @Croway +1 on the sanitizer BTW |
I mean, we should try to avoid overloading the camel-kamelets library, for example we have also some specific bean there, we should maybe move those in the main repo? WDYT? |
Yes +1 on moving to camel as much as possible The only downside I see is that the transformers may add optional/provided dependencies to the Camel components pom.xml. This is because the transformer implementations refer to like JsonNode, CloudEvents etc. and these bits may not be part of the compile time in a Camel component yet. |
the action is failing due to missing files, in particular I have the following locally Is it safe to push these files? @oscerd @davsclaus |
Yes its fine to merge |
Go ahead +1 for me |
Hi, I have some doubts regarding this PR, in particular,
META-INF/services/org/apache/camel/datatype
instead ofMETA-INF/services/org/apache/camel/
I was wondering if it is worth to use the "default" folder structureMETA-INF/services/org/apache/camel/transformer
.:
or+
.