-
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
Fix guides code generation to be consistent with content #14453
Conversation
It would be good to review/merge that one as most of the guides are broken right now! |
ping @maxandersen |
ping pong ping pong :) @maxandersen @gsmet |
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.
I reviewed the ones that did not add resteasy and just used noexamples and spotted a few that relied on resteasy or jaxrs.
curious on what made noExmaples=true be a good choice for those or I missed some magic :)
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.
clicked the wrong button - requesting changes.
@maxandersen guides without I guess some guides were already broken and maybe we should ping the maintainers because this is not the role of this PR IMO |
b029d11
to
1a0b891
Compare
Hey @maxandersen I tried to add Also while doing I didn't manage to fix 'security-openid-connect-web-authentication' because the guide was not consistent with the quickstart (#14587) |
Makes sense to me. We really need to get this into 1.11.1.Final. |
We also had several reports of a version mismatch: #14589 . The apps are now generated with a version |
ok, thanks for the heads up on the version @gsmet, you are right, I haven't thought about the generated runner (and the guides) when changing the default version 😔 (it was to be consistent with code.quarkus.io), even if I preferred |
Well, I don't know in which direction we want to go but we need a fix one way or the other :). Basically:
The second option will obviously be more tedious. |
Note: I release 1.11.1.Final tomorrow morning. |
@maxandersen you need to get on that one if we don't want to be late! |
@gsmet could you give me the commit ids please? I will create a PR to go back to |
oh so thats where the |
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.
looks good - LGTM for fixing the lack of resteasy :)
the version nuber stuff i'm surprised why changing from 1.0 to 1.0.0 breaks things...but that could be seperate PR to handle.
I found #14589 if thats the delta then a PR after this one with a 1.0-SNAPSHOT replaced with 1.0.0-SNAPSHOT seems the way forward. |
We would also need to update the version in the quickstarts then, but I guess it's alright.. |
So as I said, two options:
This needs to be done before the 1.11 release we will ship in RHBQ so merged before February 8th evening. I don't really care about the option chosen but we need it fixed sooner rather than later. Thanks! |
Added
resteasy
orspring-web
everywhere when thecreate
command is using-Dpath
to make sure the generated code is consistent with the content of the guide.Added
-DnoExamples
when the command was not using-Dpath
(it wasn't generating any code in the legacy codegen)This also @deprecate
devtools/maven/src/main/java/io/quarkus/maven/CreateProjectMojo#path
and improves the description forclassName
.Also, in a quick glimpse, I think some of the
-DnoExample
could be removed to at least create the endpoint for the tuto.Until we have #12957 the generated code may contain more class than expected (if some of the extensions have codestarts)
Related to #14391
Fixes #13917
cc @maxandersen @rsvoboda @gsmet