# alternera_plugin_sdk

What an Alternera pipeline plugin
builds on: the `Alternera.Plugin` behaviour and the shared step modules under
it. The package depends on nothing of the proxy, so a plugin in a Mix project
of its own can depend on it. Its own dependencies are `jason`, and `jsv` and
`json_xema` for the JSON Schema checks (`Plugin.Provisional.JsonSchema`).

    {:alternera_plugin_sdk, "~> 0.9.0"}

What the SDK needs from the application it runs in comes through
`Alternera.Plugin.Host`:

    config :alternera_plugin_sdk, :host, MyApp.PluginHost

A plugin's own tests run with the kit in this package and no proxy around:
`Alternera.Plugin.Test` runs a step the way the pipeline runner does, and
`use Alternera.Plugin.Test.Contract` turns the contract's checks into ExUnit
tests. [`example_plugin/`](https://github.com/10e-ab/alternera-sdk/tree/main/example_plugin)
shows both, and [Writing a plugin](https://github.com/10e-ab/alternera-sdk/blob/main/docs/writing-plugins.md) is the guide.

## Licence

Licensed under the Apache License, Version 2.0 (`LICENSE`, `NOTICE`).
Alternera itself, the proxy this package plugs into, is under the Elastic
License 2.0.
