-
Notifications
You must be signed in to change notification settings - Fork 103
Using gradle, sources not generated under build/generated-sources but build/classes/java/quarkus-generated-sources #1130
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
Comments
Hi! The target output comes from Quarkus and is provided by the @geoand do you know who we can talk to about this? |
digging deeper, this sounds similar to redhat-developer/vscode-java#1675 (comment) or https://youtrack.jetbrains.com/issue/IDEA-364096/Quarkus-generated-source-is-not-marked-as-source-directory I'm not even confident to suggest that the extension should override the path provided by the Should I instead make a PR so that the extension documentation mentions that under gradle, the generated sources will land in a buildtool-specific I understand this is gradle related and that the majority (?) of extension users still use maven, so I'm evaluating if a documentation specific PR would be an adequate hint. |
Oh that would be pretty good, please do! 🙏 |
Maybe @aloubyansky has some thoughts on this |
|
Here is a reproducer, this path seems to be the default when we use gradle+kotlin The extension indeed honors this path and will generate under "generated source directory:" However the .java sources will not be in the final jar, only classes will be there. The path doesn't look right - and it feels weird to include sources from a classes folder, but I'm not sure this is "wrong" from a gradle build tool perspective ?
|
Uh oh!
There was an error while loading. Please reload this page.
Tell us the extension you're using
Client
I tried this:
Hi. Labelling as bug but I'm not sure this is the correct label.
Use case : we use gradle, not maven.
./gradlew compileJava
generates the sources inbuild/classes/java/quarkus-generated-sources/open-api-json
. note the "classes" folder.I believe this should generate in
build/generated-sources/open-api-json
instead. See https://docs.quarkiverse.io/quarkus-openapi-generator/dev/client.html, where maven would generate intarget/
rootI've looked into the source and I do not understand how "classes/java/quarkus-generated*sources" is prefixed to io.quarkiverse.openapi.generator.deployment.codegen.OpenApiGeneratorOutputPaths#OPENAPI_PATH
I believe the root path is https://github.com/quarkiverse/quarkus-openapi-generator/blob/main/client/deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/codegen/OpenApiGeneratorCodeGenBase.java#L104
Is it correct when I write that gradle should generate in build/generated-sources ?
thanks
This happened:
The target folder does not seem right
I expected this:
Sources in build/generated-sources
Is there a workaround?
Manually adding sources in IDE from build/classes/java/quarkus-generated-sources instead of empty build/generated-sources
How can we try to reproduce the issue?
./gradlew compilejava
Anything else?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus OpenApi version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
Community Notes
The text was updated successfully, but these errors were encountered: