-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Index _all_ dependencies with a certain groupId
#33316
Comments
Also /cc @geoand |
Is there some actual reason why this wouldn't work for you or is it just a matter of preference? |
Empty beans.xml do absolutely work. It's 20 empty files vs. one single config setting though. |
PS: external libs are a different story w.r.t. beans.xml. |
Sure this one I can understand and that's what the configs are primarily for.
Right, but do they hurt anyhow? You basically add it and forget about it, not need for config as well. Also note that CDI 4 uses this syntax to mark a bean archive in CDI Lite, see https://jakarta.ee/specifications/cdi/4.0/jakarta-cdi-spec-4.0.html#bean_archive |
They don't, it's just more inconvenient. You have to remember to add them to new modules, for example (rare case, admittedly). |
I'm +0 on this |
This could be done using an extension I think? Collect all the relevant vartifacts from the |
I think it could be a valuable addition if you're willing to do the work. |
If we decide to implement this then it could be more practical to turn the |
Description
For the migration to Quarkus 3, I'm about to remove jandex-maven-plugin from my ~20 modules Maven project to have one thing less to keep in sync for each Quarkus update.
As I don't really like empty
beans.xml
and listing all artifactIds is pretty verbose (especially in a distributed config setup), having Quarkus index all artifacts that belong to a configuredgroupId
would really help.Relevant docs: https://quarkus.io/guides/cdi-reference#how-to-generate-a-jandex-index
Implementation ideas
It probably boils down to making
quarkus.index-dependency.<name>.artifact-id
optional.The text was updated successfully, but these errors were encountered: