You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
I have a multi-module gradle project written in Kotlin.
I have my main quarkus application in module A, that imports another module DB using
implementation(project(":libs:db"))
On Project DB I have defined several beans of the same type (DSLContext), all with dedicated qualifier annotations - @TenantDsl and @ConfigDsl.
I do have jandex-plugin enabled in project B.
id("org.kordamp.gradle.jandex") version "1.1.0"
Now, the beans from the project DB are correctly created and managed by quarkus (I can see them in dev tools, also the exception below states that they exist).
However, I cannot inject those beans into
@Inject
@TenantDsl
lateinit var dsl: DSLContext
because:
Resulted in: jakarta.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type org.jooq.DSLContext and qualifiers [@Default]
- java member: app.pk.Repository#dsl
- declared on CLASS bean [types=[app.pk.Repository, java.lang.Object], qualifiers=[@Default, @Any], target=app.pk.Repository]
The following beans match by type, but none have matching qualifiers:
- Bean [class=org.jooq.DSLContext, qualifiers=[@Any, @TenantDsl]]
- Bean [class=org.jooq.DSLContext, qualifiers=[@Any, @ConfigDsl]]
For some reason, quarkus does not see the qualifier annotation used in module A, when wiring beans from module DB.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I have a multi-module gradle project written in Kotlin.
I have my main quarkus application in module A, that imports another module DB using
On Project DB I have defined several beans of the same type (
DSLContext
), all with dedicated qualifier annotations -@TenantDsl
and@ConfigDsl
.I do have
jandex-plugin
enabled in project B.Now, the beans from the project DB are correctly created and managed by quarkus (I can see them in dev tools, also the exception below states that they exist).
However, I cannot inject those beans into
because:
For some reason, quarkus does not see the qualifier annotation used in module A, when wiring beans from module DB.
Beta Was this translation helpful? Give feedback.
All reactions