-
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
Improve the add-extensions partial match approach #2737
Comments
@gsmet Here are my rule change proposal to limit name conflicts and offer a simpler way out than having to write the GAV. I'm interesting to see what hope you can poke at it. |
Looks good to me. Let's try to tackle that for 0.17.0. |
LGTM too |
I'm adding a new use cases to it. Some extensions have a very very bad "SEO" because their artifactId is long and painful to write down. It would lead to other extensions or approaching being de facto preferred instead of what would be the more natural path for a Quarkus app. That short name is:
Short name should not be abuse and use only when it's important. A good artifactId is preferred.
Let's take an example.
with the shortname
|
On a side note, I wonder if we should consider |
Could do. In theory there shouldn't be overlap, otherwise it means we're duplicating effort in different places |
I not following your effort duplication argument @kenfinnigan |
If we have a |
Ah I get your meaning now. |
I'm on it, trying to see the corner cases. |
…quarkusio#2737. Impact of the new selection algorithm on the guides. Most of it is purely cosmetic and allow using shorter names. Some tweaks are required to avoid ambiguity. Do not use dash in bean validation. Remove the swagger-ui short name. Swagger may mean something else.
I'm keeping the issue open for now as I'm not sure everything was implemented as it was supposed to be. Feel free to close it if everything is in order. |
…#2737. Impact of the new selection algorithm on the guides. Most of it is purely cosmetic and allow using shorter names. Some tweaks are required to avoid ambiguity. Do not use dash in bean validation. Remove the swagger-ui short name. Swagger may mean something else.
Closing as this has been fixed a long time agon |
Today the following algorithm is used:
For each entry in
-Dextensions
do the following:abracadabra
will match-Dextensions=abracadabra
Quarkus AbrAcadabra
will match-Dextensions=brac
quarkus-abracadabra
will match-Dextensions=brac
Right know it creates conflicts:
quarkus-hibernate-search-elasticsearch
conrtains arcI propose the following refinements:
A search command whether via start.quarkus.io or the
-Dsearch
would keep the previous algorithm as it maximizes the number of relevant matching entriesThe
-Dextensions
algorithm should aim at:Here is a set of change proposal that we can partially or entirely take
foobar
an exact match ofquarkus-foobar
Rule 2 would offer a way out of two conflicts mentioned above:
arc
would not have to select the GAVorm
would have to choose between panache and normal ORMhibernate-orm
would select orm and not panacheThe text was updated successfully, but these errors were encountered: