Resolving dependency / artifact in a codegen SPI implementation #43844
Replies: 2 comments 7 replies
-
You mean you want to download them depending on the requested build outcome? |
Beta Was this translation helpful? Give feedback.
-
I was hoping we have some abstraction on top of that. As I mentioned in the other discussion, the solution must work regardless the build tool.
I would say yes. Because we will potentially download artifacts, we need to enforce proxies and repository settings.
My idea was to keep a single dependency in the extension, retrieve the resolved dependency, and use that specific version. Thus, it gets enforced.
Can the SBOM be extended using build items? The use case is the one I described: how to handle cross-platform execution of JVM application. So far, we require the user to add the dependencies explicitly. Users may not be aware of what brotli or rocksdb is. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I believe it's mostly a question for @aloubyansky, but others may be interested.
I need to resolve (download) a specific artifact during the codegen phase.
This is about the gRPC code generator. We need 2 native dependencies: protoc and the protoc-gen-plugin.
Currently, these artifacts are dependencies. But it's causing issues (too many downloads, arch-based profiles not supported in Gradle...).
My idea was to:
But I need a way to work on Quarkus CLI, Maven, and Gradle. My idea was to inject the ModelResolver into the Code generator. But I'm not sure I can access it at that point.
Note that tomorrow, I will start another related discussion about the regular extensions (not code generators) that could add and resolve dependencies during a build step.
Beta Was this translation helpful? Give feedback.
All reactions