Is there a proto maven/gradle package?
I'm using quarkus app for connecting to the grpc services of zitadel.
I'm looking for an oficial package that I can import to my gradle/maven config, instead of copy the proto file from the repository, so it keeps updated with each release that you are doing.
So for now I copy the proto file, and added this dependencies to my gradle config, but I do not find in the documentation if this versions match the one you are using.
Thanks
Miguel Angel
6 Replies
Hi @mikecastillo , a week ago I was wondering the same, but for Spring Boot in my case 🙂
I crafted a PoC to download the proto files in build time by cloning ZITADEL's main repo branch and then codegen the Java classes.
The ZITADEL proto api claims to be backwards compatible, so it should be a starting point. The Typescript login project (custom login) follows the same pattern.
You can check it here: https://github.com/ArnauAregall/testcontainers-zitadel-demo
Cheers,
Arnau.
GitHub
GitHub - ArnauAregall/testcontainers-zitadel-demo: Demo project to ...
Demo project to run a ZITADEL instance on Spring Boot tests using Testcontainers - ArnauAregall/testcontainers-zitadel-demo
Yeah, so the only option for now, is just to copy the proto files. do you know where I can find the current compatible versions of the proto depencies? like ones from google, github, is not clear to me what are the valid zitadel V2 api grpc dependencies
In
zitadel/proto/buf.lock
file the specific versions (commits) are defined for each dependency : https://github.com/zitadel/zitadel/blob/main/proto/buf.lock
If I'm not wrong, to use exactly those versions in a project, we should correlate them to their specific matching Maven artifact compatible versions.
AI referenced it should match com.google.protobuf:protobuf-java
3.25.x
.
Nevertheless in the linked PoC repository I tried com.google.protobuf:protobuf-java:4.30.2
(latest stable on Central as of today) and the codegen of ZITADEL's classes succeeds - with some warnings of unused imports, but without compile errors.GitHub
zitadel/proto/buf.lock at main · zitadel/zitadel
ZITADEL - Identity infrastructure, simplified for you. - zitadel/zitadel
Good, thank you!
np! if you find a cleaner approach that is automatically bound to the required versions let me know, it will be of my interest 🙂
🎉 Looks like you just helped out another community member! Thanks for being so helpful <@1089771102315753532>! You're now one step closer to leveling up—keep up the amazing peer support! 🚀