- Check out the http4s sample repo and switch to
bespoke-guardrail-extensibility
branch. sbt> ++ 2.12.13
to select a version compatible with sbt's scalaVersionsbt> customCirce/publishLocal
- Uncomment
"customcirce"
dependency inproject/plugins.sbt
sbt> reload
sbt> guardrail
This will use the custom CirceProtocolGenerator
extensions defined in
custom-circe/src/main/scala/CustomCirce.scala
injected by way of
custom-circe/src/main/resources/META-INF/services/dev.guardrail.generators.spi.ProtocolGeneratorLoader
The diff of circe
vs custom-circe
is in the Changeset.diff
included in this gist.