(artifact-outdated-string? artifact & [opts])
Check whether the given artifact is outdated, returning either nil
or
a string representing the latest version.
(For possible options see ancient-clj.core/versions-per-repository!
.)
Check whether the given artifact is outdated, returning either `nil` or a string representing the latest version. (For possible options see `ancient-clj.core/versions-per-repository!`.)
(artifact-outdated? artifact & [opts])
Check whether the given artifact is outdated, returning either nil
or
a map representing the latest version.
(For possible options see ancient-clj.core/versions-per-repository!
.)
Check whether the given artifact is outdated, returning either `nil` or a map representing the latest version. (For possible options see `ancient-clj.core/versions-per-repository!`.)
(create-loaders m & {:keys [wrap] :or {wrap identity}})
Create loader map for a seq of ID/settings pairs representing different repositories.
wrap
will be called on each loader function.
Create loader map for a seq of ID/settings pairs representing different repositories. `wrap` will be called on each loader function.
(latest-version! artifact & [opts])
Return a map representing the latest artifact version.
(For possible options see ancient-clj.core/versions-per-repository!
.)
Return a map representing the latest artifact version. (For possible options see `ancient-clj.core/versions-per-repository!`.)
(latest-version-string! artifact & [opts])
Return a string representing the latest artifact version.
(For possible options see ancient-clj.core/versions-per-repository!
.)
Return a string representing the latest artifact version. (For possible options see `ancient-clj.core/versions-per-repository!`.)
(maybe-create-loader spec)
Create loader function for the given spec. Will return nil
for
unknown loader types.
Create loader function for the given spec. Will return `nil` for unknown loader types.
(maybe-create-loaders m & {:keys [wrap] :or {wrap identity}})
Create loader map for a seq of ID/settings pairs representing
different repositories. Will contain nil
values for unknown
loaders.
wrap
will be called on each loader function.
Create loader map for a seq of ID/settings pairs representing different repositories. Will contain `nil` values for unknown loaders. `wrap` will be called on each loader function.
(read-artifact this)
Create a map of ':group', ':id', ':version' and ':version-string',
as well as :symbol
and :form
.
Create a map of ':group', ':id', ':version' and ':version-string', as well as `:symbol` and `:form`.
(version-strings! artifact & [opts])
Return a seq of version strings.
(For possible options see ancient-clj.core/versions-per-repository!
.)
Return a seq of version strings. (For possible options see `ancient-clj.core/versions-per-repository!`.)
(versions! artifact
&
[{:keys [repositories snapshots? qualified? sort]
:or {repositories default-repositories
snapshots? true
qualified? true
sort :desc}
:as opts}])
Return a seq of version maps.
(For possible options see ancient-clj.core/versions-per-repository!
.)
Return a seq of version maps. (For possible options see `ancient-clj.core/versions-per-repository!`.)
(versions-per-repository! artifact
&
[{:keys [repositories snapshots? qualified? sort]
:or {repositories default-repositories
snapshots? true
qualified? true
sort :desc}
:as opts}])
Return a map with either a seq of versions or a Throwable for each repository.
:repositories
: a map of repository ID -> loader specification.:snapshots?
: if set to false, SNAPSHOT versions will be filtered.:qualified?
: if set to false, qualified versions (e.g. "*-alpha") will be filtered.:sort
: the order of the resulting versions seqs (:desc
, :asc
, :none
).A loader specification can either be a map (with at least the key :uri
), a string
or a two-parameter function (taking artifact group and ID).
Versions will be given as maps of :version-string
and :version
where the latter
represents a version-clj value.
Return a map with either a seq of versions or a Throwable for each repository. - `:repositories`: a map of repository ID -> loader specification. - `:snapshots?`: if set to false, SNAPSHOT versions will be filtered. - `:qualified?`: if set to false, qualified versions (e.g. "*-alpha") will be filtered. - `:sort`: the order of the resulting versions seqs (`:desc`, `:asc`, `:none`). A loader specification can either be a map (with at least the key `:uri`), a string or a two-parameter function (taking artifact group and ID). Versions will be given as maps of `:version-string` and `:version` where the latter represents a version-clj value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close