sbt-schemaregistry fetches Avro schemas from a Schema Registry and generates source code accordingly. The plugin is based on sbt-avro.
Add the plugin according to sbt-documentation.
For instance, add the following lines to the file project/plugins.sbt
in your project directory:
addSbtPlugin("com.github.mkroli" % "sbt-schemaregistry" % "0.3")
AvroConfig / schemaRegistryUrl := "http://localhost:8081"
AvroConfig / schemaRegistrySubjects := Seq(
"topic-key",
"topic-value"
)
sbt-schemaregistry is licensed under the Apache License, Version 2.0.