-
Notifications
You must be signed in to change notification settings - Fork 147
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
EnablePersistentDomainEvents annotation can't be used #374
Comments
…ibility with EventPublicationAutoConfiguration
Can you elaborate on why you would want to use the annotation explicitly? It's a left-over from the times in which Spring Boot was not a mandatory dependency. There's no real use for that any more, except in our very own integration testing code. |
Ah ok, I couldn't figure out a better way to use spring-modulith-events without other parts of modulith project. |
Can you elaborate on what you were trying to do? |
Actual modules I added were
My goal is to use the persistent events logic in our modular monolith project without using full spring modulith |
Just fyi not an issue for me personally anymore, since using full Modulith instead of events only is not an issue actually |
Looks like EnablePersistentDomainEvents will select EventPublicationConfiguration for import and at the same time EventPublicationAutoConfiguration extends EventPublicationConfiguration so if you add EnablePersistentDomainEvents annotation then the application fails to start
Workaround for now seems to be to either enable overriding or just not using the annotation and manually importing your EventPublicationConfigurationExtension and EventSerializationConfigurationExtension implementations.
The text was updated successfully, but these errors were encountered: