Skip to content
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

OperateClientProdAutoConfiguration is defined incorrectly #399

Open
chillleader opened this issue Apr 4, 2023 · 0 comments
Open

OperateClientProdAutoConfiguration is defined incorrectly #399

chillleader opened this issue Apr 4, 2023 · 0 comments
Labels

Comments

@chillleader
Copy link
Contributor

OperateClientProdAutoConfiguration is defined using @ImportAutoConfiguration (instead of META-INF).
This is discouraged by the documentation:

Generally, @EnableAutoConfiguration should be used in preference to this annotation, however, @ImportAutoConfiguration can be useful in some situations and especially when writing tests.

We should define it using META-INF to avoid problems.

Context

I was trying to manually disable OperateClientProdAutoConfiguration and got the following error:

The following classes could not be excluded because they are not auto-configuration classes:\r\n\t- io.camunda.zeebe.spring.client.configuration.OperateClientProdAutoConfiguration

I tend to think that this happens because this auto-configuration is not defined properly (using META-INF), so Spring doesn't detect it as auto-configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant