-
Notifications
You must be signed in to change notification settings - Fork 615
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
Multi module streams configuration #2972
Comments
Any thoughts? 🤔 |
I personally have no tried it nor have we had any requests like this. |
Hi Oleg, thanks for your response I know I can define multiple function definitions. The problem arises when multiple configuration |
@gdonoso94 I am having hard time reproducing it. In fact I see a different behavior then you describe. So, here is what I have:
Module B:
Module B is a dependency to Module A and when i run Module A In other words, i don't see an override, rather one configuration or the other gets picked up. Perhaps my setup does not exactly re[resent yours, so may be you can create a small reproducible sample that I can play with. |
Hi @olegz , thanks for your response. I will try to provide some minimal example as soon as I find some spare time. |
@gdonoso94 Any updates? |
Hello,
I'm not sure this should be considered a bug, it's more a how-to question.
I have a multi module project, consisting of multiple gradle modules where every module create different consumers and producers using a RabbitMQ broker binding. The consumer functions, bindings and binders are defined in the global application.yaml file.
In an attempt of structure better the project, I've split the config in separate application.yaml files, one under each module resources', only containing the needed module related configuration.
When there are multiple application.yaml files, these are combined and, since "spring.cloud.stream.function.definition" is a string, it get's overwritten by the different application.yaml files, therefore making impossible to split the configuration files in the project.
Digging a little bit in this repo, I've seen the defintions are obtained and split here, and I was wondering if it could be possible to have the definitions declared as an array in the config, so it can be extended when having multiple yaml configuration files. In my projects I've used @ConfigurationProperties for this and it's something I believe it could help here.
I would be more than happy to help with a PR for this but I need some guidance, this would be the first open source project I collaborate with and I'm pretty sure I'm missing something.
The text was updated successfully, but these errors were encountered: