Replies: 4 comments 8 replies
-
Hi @koplas. |
Beta Was this translation helpful? Give feedback.
-
Here is a reproducer: git clone https://github.com/koplas/quarkus-openapi-repro.git
cd quarkus-openapi-repro
mvn package This repro only contains the generator, a rest client, and the starter code. |
Beta Was this translation helpful? Give feedback.
-
Hi @hbelmiro and @koplas, after researching here... When the
without Capability: io.quarkus.cdi
Capability: io.quarkus.rest
Capability: io.quarkus.resteasy.reactive
Capability: io.quarkus.vertx
Capability: io.quarkus.vertx.core
Capability: io.quarkus.vertx.http
Capability: io.quarkus.resteasy.json.jackson.client I think that we have two options:
// use of method
isCompileOnlyResolvedDependencyPresent(context, "io.quarkus:quarkus-rest-client-reactive-jackson")
// find resolved dependencies with `provided` scope.
private static boolean isCompileOnlyResolvedDependencyPresent(CodeGenContext context, String ga) {
return StreamSupport
.stream(context.applicationModel().getDependenciesWithAnyFlag(DependencyFlags.COMPILE_ONLY).spliterator(),
false)
.map(resolvedDependency -> resolvedDependency.getGroupId() + ":" + resolvedDependency.getArtifactId())
.anyMatch(ga::equals);
} |
Beta Was this translation helpful? Give feedback.
-
Hi @koplas, what is your use case to use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Currently, it is not possible to use the code generator with
quarkus-rest-client-reactive-jackson
when the scope of the dependency is set toprovided
, as this fails with:The reason is that quarkus extensions export their capabilities, and this generator checks for the capability of the rest-client and fails incorrectly, despite the extension being later present at runtime.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions