### Override SpecificRecord Custom Namespace Mapping Source: https://github.com/julianpeeters/sbt-avrohugger/blob/main/README.md Example of reassigning namespaces for SpecificRecord generation using a map. This snippet shows how to map specific package names and wildcard patterns to overridden namespaces. ```scala Compile / avroScalaSpecificCustomNamespace := Map("my.example"->"my.overridden.ex", "test.*" -> "wildcarded") ``` -------------------------------- ### Override SpecificRecord Source Directories Source: https://github.com/julianpeeters/sbt-avrohugger/blob/main/README.md Example of changing the source directories for SpecificRecord generation in build.sbt. This snippet demonstrates appending a custom directory to the default settings. ```scala Compile / avroSpecificSourceDirectories += (Compile / sourceDirectory).value / "myavro" ``` -------------------------------- ### Override SpecificRecord Scala Output Path Source: https://github.com/julianpeeters/sbt-avrohugger/blob/main/README.md Example of setting a custom output path for generated Scala files for SpecificRecords. This snippet directly assigns a new file path to the output directory setting. ```scala Compile / avroSpecificScalaSource := new java.io.File("myScalaSource") ``` -------------------------------- ### Override SpecificRecord Custom Types for Arrays Source: https://github.com/julianpeeters/sbt-avrohugger/blob/main/README.md Example of customizing the Scala type used for Avro arrays in SpecificRecord generation. This snippet copies the default types and modifies the 'array' type to use ScalaVector. ```scala Compile / avroScalaSpecificCustomTypes := { avrohugger.format.SpecificRecord.defaultTypes.copy( array = avrohugger.types.ScalaVector) } ``` -------------------------------- ### Add sbt-avrohugger Plugin Source: https://github.com/julianpeeters/sbt-avrohugger/blob/main/README.md Add this line to your `project/plugins.sbt` file to include the sbt-avrohugger plugin in your project. ```scala addSbtPlugin("com.julianpeeters" % "sbt-avrohugger" % "2.17.0") ``` -------------------------------- ### Enable File Watching for Avro Files Source: https://github.com/julianpeeters/sbt-avrohugger/blob/main/README.md Add this setting to your `build.sbt` to enable sbt's file watching for Avro definition files (`.avdl`), ensuring recompilation when these files change. ```scala watchSources ++= ((Compile / avroSourceDirectory).value ** "*.avdl").get ``` -------------------------------- ### Integrate Avro Generation into Test Task Source: https://github.com/julianpeeters/sbt-avrohugger/blob/main/README.md Wire the `avroScalaGenerate` task into the `Test` configuration in your `build.sbt` to generate Scala code from Avro files located in `src/test/avro` during testing. ```scala Test / sourceGenerators += (Test / avroScalaGenerate).taskValue ``` -------------------------------- ### Integrate Avro Generation into Compile Task Source: https://github.com/julianpeeters/sbt-avrohugger/blob/main/README.md Wire the `avroScalaGenerate` task into the `compile` task in your `build.sbt` to automatically generate Scala code from Avro files during compilation. ```scala Compile / sourceGenerators += (Compile / avroScalaGenerate).taskValue ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.