-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Move to kebab case and add categories in model #4851
Move to kebab case and add categories in model #4851
Conversation
011adec
to
60ba700
Compare
@@ -0,0 +1,31 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just draft example - will be removed before final review/merge.
@aloubyansky @ia3andy I would like to get review/confirmation on the general idea in this pr - majority is just updating the actual .json files; actual code is fairly small. It basically just clean up the descriptor structure and introduces notion of categories in platform descriptor. Once we merge this I'll do a follow up that moves the |
60ba700
to
832c09e
Compare
@@ -1,74 +1,78 @@ | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" | |||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please undo the formatting here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this one?
...-projects/bootstrap/maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java
Show resolved
Hide resolved
…scriptor loader to load the default version from the classpath
Why: * all other formatting in quarkus uses kebab-case * categories needed in registry This change addreses the need by: * use kebab property naming for parsing of artifacts class. * rename shortName to short-name * add tests * add categories
...-projects/bootstrap/maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java
Outdated
Show resolved
Hide resolved
...est/java/io/quarkus/test/platform/descriptor/loader/QuarkusTestPlatformDescriptorLoader.java
Show resolved
Hide resolved
...t-projects/tools/platform-descriptor-api/src/main/java/io/quarkus/dependencies/Category.java
Show resolved
Hide resolved
...-projects/tools/platform-descriptor-api/src/main/java/io/quarkus/dependencies/Extension.java
Show resolved
Hide resolved
3746ca7
to
3d61c30
Compare
Note: reason for the whitespace diff in ..json files is that we moved to use jackson for the read/write and it uses " : " rather than ": " as used by eclipsesource json. didn't find a flag to control that and since trying to move to yaml anyways I didn't want to spend unnecssary amount of time tweaking the pretty print of json. |
I got no idea why the builds are now failing with vm errors - this is similar kind of error I saw in master before I did the changes in this PR. |
now actually seeing relevant test errors....investigating! |
I approved before checking the CI. There are NPEs in the tests though. |
yes - just saw them. looking. |
ok, shortName failing null check - that was a change I did last so must have not done full IT test on that. fixing. |
okey, that was easy fix - pushed - lets see what the tests says this time ;) |
all test passed, but then noticed the dummy extensions-override.json was still there - so now removed but I expect the tests to still pass and we should push then. but not going to wait for that to complete before I go sleep - so if someone sees this be green before I wake tomorrow then please merge ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM very cool @maxandersen
Why:
This change addreses the need by: