-
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
CDI issue with avro after migration to Quarkus 2.7 #24452
Comments
/cc @evanchooly, @manovotn, @mkouba |
I think we will need a small reproducer for that one. |
Hi @gsmet, So here is a small reproducer with 3 files (1 avro, 1 java & 1 kotlin) In this reproducer, usage of Avro is not useful (no messages sent to Kafka) but it reproduces the current issue. |
I can take a look... |
@glefloch will you have time to look into what happens there on the plugin level? |
yes sure. |
The devmode is working, I think the problem comes from a missing source path in the model. I will push a fix. |
Hm, that's interesting... it's usually the other way around - a problem in dev mode but not in prod mode ;-). |
Describe the bug
We have a Quarkus application with Java and Kotlin sources.
This component contains an avro file used to produce messages for Kafka
Gradle build of this application works perfectly with Quarkus 2.6 (2.6.3.Final)
But after migration to Quarkus 2.7 (2.7.5.Final), gradle build fails with some dependencies injection issues (see below)
It seems that some classes generated from Kotlin sources are not found by @Inject annotation used in classes generated from Java sources.
If we remove avro generation from this component, gradle build works fine.
Expected behavior
BUILD SUCCESSFUL
Actual behavior
FAILURE: Build failed with an exception.
Execution failed for task ':quarkusBuild'.
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
11.0.10
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.5.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: