How to share avro schema between different microservices?

Question was originally asked on Stackoverflow apache kafka - How to share avro schema between different microservices? - Stack Overflow

But thought, I might bet more help here. If its duplicate then please let me know I can delete one of the post :slight_smile:

We have bunch of avro files, we have schema first approach where kotlin producer project converts the file to class and produce the kafka message. Now there are multiple consumers which requires the same message.

I did see the reply here how to share avro schema definitions across teams , but somehow it does not feel very convenient to me.

We do have schema registry, but also in all consumers we want to use the same data model coming from the avro schema. So how do we share these schema file?

Have a different repo to store all the schemas? and then package and use it accross projects?

Or what other methods do people use?