Publish destinations as data, behind a registry. Pure.
The registry is the dependency-inversion point: plan and the boundary
depend on the Target schema, never on a particular registry. A new
destination is a register! and no edit anywhere else.
Publish destinations as data, behind a registry. Pure. The registry is the dependency-inversion point: `plan` and the boundary depend on the Target schema, never on a particular registry. A new destination is a `register!` and no edit anywhere else.
(basic-auth username password)The Authorization header value for username/password, or nil when either
is missing. Credentials are transmitted, not stored: this is the only place
they are encoded.
The Authorization header value for `username`/`password`, or nil when either is missing. Credentials are transmitted, not stored: this is the only place they are encoded.
(deploy-request target
{:keys [artifact pom-file env installer]
:or {installer :remote}})The deps-deploy argument map for target.
A named repository carries explicit credentials; without one deps-deploy applies its own Clojars defaults. A local install never carries a repository at all.
The deps-deploy argument map for `target`. A named repository carries explicit credentials; without one deps-deploy applies its own Clojars defaults. A local install never carries a repository at all.
(register! target)Add target to the registry, replacing any target with the same id.
Returns the id.
Add `target` to the registry, replacing any target with the same id. Returns the id.
(repo-url target env)The Maven repository URL for target, reading env when the target names
its URL by environment variable. nil when neither is available.
The Maven repository URL for `target`, reading `env` when the target names its URL by environment variable. nil when neither is available.
(required-env target)The environment variables target cannot publish without, in a stable
order. Derived from the target, so a new destination declares its own
credentials rather than editing a check.
The environment variables `target` cannot publish without, in a stable order. Derived from the target, so a new destination declares its own credentials rather than editing a check.
(target id)The registered Target for id.
Throws when id is unknown: an unrecognised :publish value must stop the
release, never fall through to a default destination.
The registered Target for `id`. Throws when `id` is unknown: an unrecognised :publish value must stop the release, never fall through to a default destination.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |