sbt-avrohugger
sbt-avrohugger copied to clipboard
sbt plugin for generating Scala sources for Apache Avro schemas and protocols.
This problem is flacky and occurs in random places in our codebase. We have a couple of dozens avdl files and they are converted to scala. From time to time...
Hi, we have a Kafka topic with values of Avro type union of two Avro types (any message is of one or another type). When we have union types for...
Hi, We have an avsc file that defines com.ovoenergy.global.SourceMetadata and indeed after sbt compile i can notice the generated Scala case class com.ovoenergy.global.SourceMetadata. Is there a way to import an...
Hello, We have like this: addSbtPlugin("com.julianpeeters" % "sbt-avrohugger" % "2.0.0-RC22") addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.5") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.2") addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.4.3") scalaVersion := "2.12.10" name :=...
``` name := "kafka-messages", avroScalaSource in Compile := file(name.value) ``` vs `avroScalaSource in Compile := ((ThisBuild / baseDirectory) in Compile)(_ / "kafka-messages").value` update: test, readme
Following the readme I'm trying to change the type generated for `enum` but I cannot make it work. When I add this ```scala avroScalaSpecificCustomTypes in Compile := { SpecificRecord.defaultTypes.copy( enum...
Our company has a set of defined avro schemas which we're trying to use avrohugger on. In these avro schemas, they have defined a top-level schema for fixed decimals: {...
At the moment when generating a `record` (I use a SpecificRecord but I guess is the same for the others) also the companion object of the case class is (correctly)...
If I don't fix the base in the override, e.g.: `(sourceDirectory in avroConfig) := baseDirectory.value / "relative/path/to/my/avro"` I get a `java.util.NoSuchElementException: key not found: relative/path/to/my/avro.avdl` It might be helpful to...
I was getting the following error: ``` [error] .../ProtocolName.scala:4: expected class or object definition [error] () [error] ^ [error] one error found [error] (compile:compileIncremental) Compilation failed ``` An invalid file...