Publication of jars built with Quarkus and dependency tree #44701
jmini
started this conversation in
Design Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a Quarkus multi modules containing following modules:
We are using gRPC so
2.
contains the proto definitions and the java models, modules1.
and3.
have a dependency on2.
, but I think the problem would be the same regardless of the technology (REST, graphQL, ...)It makes sense for us to build those together since they share some logic/code.
When we publish the client-SDK jar, it has a lot of dependencies. Extract of a
mvn org.apache.maven.plugins:maven-dependency-plugin:3.6.1:tree
command:According to my knowlege many of those dependencies are not even used at runtime.
They come from the fact that all the quarkus extentions are put on the
implementation
configuration (probably because with maven there is no other flexibility).I would like to have a "clean" published client library:
Because I can probably not solve this at quarkus level (even if I think it makes no sense to have the quarkus extensions on the
implementation
configuration), my current idea is to investigate if I can modify the metadata (pom
file) of the published client:Is there a way to identify if a quarkus extension contains some runtime code or if its code is only involve at build-step time.
Beta Was this translation helpful? Give feedback.
All reactions