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:
resolvers += Resolver.bintrayIvyRepo("mkroli", "sbt-plugins")
addSbtPlugin("com.github.mkroli.sbt.schemaregistry" % "sbt-schemaregistry" % "0.1")
AvroConfig / schemaRegistryUrl := "http://localhost:8081"
AvroConfig / schemaRegistrySubjects := Seq(
"topic-key",
"topic-value"
)
sbt-schemaregistry is licensed under the Apache License, Version 2.0.