https://github.com/meetup/rules_avro generates java src jars and libraries from avro schemas
https://github.com/meetup/rules_openapi uses swagger codegen to generate arbitrary code from open api specs. We use this to generate scala micro service clients. These get packaged into src jars but I realize this could be useful for and languages swagger codegen supports that are also supported by bazel. What I'm unsure of yet is what the output format would look like for those languages. What are other folks doing for src outputs for non jvm languages?
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/de0b7d64-38d4-4b6c-85b3-5b1fb099d0df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Doug!Cool stuff that you're working on!Reg. outputs for different languages, I think principled solution is to use aspects to produce just the right output depending on which language is used. Adding +Carmi Grushko who did this for proto rules, and +Dmitry Lomov who is our cool ideas (such as aspects) generator :)Thanks for open-sourcing your rules!
On Thu, May 18, 2017 at 7:00 AM Doug Tangren <d.ta...@gmail.com> wrote:
I wanted to share some work my company open sourced as well as gather some feedback on design as we're new to bazel and aren't sure we're using idiomatic patterns. We're in the process of moving away from sbt towards bazel and are trying to fill in some gaps where we previously relies on sbt plugins.
https://github.com/meetup/rules_avro generates java src jars and libraries from avro schemas
https://github.com/meetup/rules_openapi uses swagger codegen to generate arbitrary code from open api specs. We use this to generate scala micro service clients. These get packaged into src jars but I realize this could be useful for and languages swagger codegen supports that are also supported by bazel. What I'm unsure of yet is what the output format would look like for those languages. What are other folks doing for src outputs for non jvm languages?
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/de0b7d64-38d4-4b6c-85b3-5b1fb099d0df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
For reference, https://bazel.build/blog/2017/02/27/protocol-buffers.html describes proto support - namely that we have a proto_library rule which provides structure to .proto files, and $LANG_proto_library rules per each concrete language we generate code for.