SBT plugins to help build and release Snowplow pipeline applications. A place to store shared common configuration settings.
Add this to your project/plugins.sbt
file:
addSbtPlugin("com.snowplowanalytics" % "sbt-snowplow-release" % "x.y.z")
Configure a sbt project to publish a docker image, using Snowplow's standard settings, and using elipse-temurin:11-jre-focal
as the base image.
lazy val subproject = project
.enablePlugins(SnowplowDockerPlugin)
Configure a sbt project to publish the "distroless" flavour of a Snowplow docker image. It uses Snowplow's standard settings, and using gcr.io/distroless/base:nonroot
as the base image.
lazy val subproject = project
.enablePlugins(SnowplowDistrolessDockerPlugin)
This plugin adds Iglu schema files to your project's managed resources. This is helpful if you use iglu-scala-client and you want the schemas to be fetched at compile time instead of run time.
Setting | Default | Description |
---|---|---|
igluUris |
(empty) | The list of Iglu URIs required by the project |
igluRepository |
http://iglucentral.com |
The Iglu repository URL from which to fetch schemas |
igluEmbeddedPrefix |
iglu-client-embedded |
The default is compatible with Iglu Scala Client's default location for an embedded repository |
This example will fetch a schema from Iglu Central and add it to the test resources directory, under the path iglu-client-embedded/schemas/org.ietf/http_header/jsonschema/1-0-0
.
Test / igluUris := Seq("iglu:org.ietf/http_header/jsonschema/1-0-0")