(artifact-request {:keys [artifact repositories] :as m})creates an ArtifactRequest object from map
(artifact-request {:artifact "im.chit:hara:2.4.8" :repositories [{:id "clojars" :authentication {:username "zcaudate" :password "hello"} :url "https://clojars.org/repo/"}]}) ;;=> #req.artifact{:artifact "im.chit:hara:jar:2.4.8", ;; :repositories [{:id "clojars", ;; :url "https://clojars.org/repo/" ;; :authentication {:username "zcaudate", :password "hello"}}], ;; :request-context ""}
creates an `ArtifactRequest` object from map
(artifact-request
{:artifact "im.chit:hara:2.4.8"
:repositories [{:id "clojars"
:authentication {:username "zcaudate"
:password "hello"}
:url "https://clojars.org/repo/"}]})
;;=> #req.artifact{:artifact "im.chit:hara:jar:2.4.8",
;; :repositories [{:id "clojars",
;; :url "https://clojars.org/repo/"
;; :authentication {:username "zcaudate", :password "hello"}}],
;; :request-context ""}
(collect-request {:keys [root repositories] :as m})creates a CollectRequest object from map
(collect-request {:root {:artifact "im.chit:hara:2.4.8"} :repositories [{:id "clojars" :url "https://clojars.org/repo/"}]}) ;;=> #req.collect{:root {:artifact "im.chit:hara:jar:2.4.8", ;; :exclusions [], ;; :optional false, ;; :scope "", ;; :optional? false} ;; :repositories [{:id "clojars", ;; :url "https://clojars.org/repo/"}]}
creates a `CollectRequest` object from map
(collect-request
{:root {:artifact "im.chit:hara:2.4.8"}
:repositories [{:id "clojars"
:url "https://clojars.org/repo/"}]})
;;=> #req.collect{:root {:artifact "im.chit:hara:jar:2.4.8",
;; :exclusions [],
;; :optional false,
;; :scope "",
;; :optional? false}
;; :repositories [{:id "clojars",
;; :url "https://clojars.org/repo/"}]}
(dependency-request {:keys [root repositories] :as m})creates a DependencyRequest object from map
(dependency-request {:root {:artifact "im.chit:hara:2.4.8"} :repositories [{:id "clojars" :url "https://clojars.org/repo/"}]}) ;;=> #req.dependency{:root {:artifact "im.chit:hara:jar:2.4.8", ;; :exclusions [], ;; :optional false, ;; :scope "", ;; :optional? false} ;; :repositories [{:id "clojars", ;; :url "https://clojars.org/repo/"}]}
creates a `DependencyRequest` object from map
(dependency-request
{:root {:artifact "im.chit:hara:2.4.8"}
:repositories [{:id "clojars"
:url "https://clojars.org/repo/"}]})
;;=> #req.dependency{:root {:artifact "im.chit:hara:jar:2.4.8",
;; :exclusions [],
;; :optional false,
;; :scope "",
;; :optional? false}
;; :repositories [{:id "clojars",
;; :url "https://clojars.org/repo/"}]}
(deploy-request {:keys [artifacts repository] :as m})creates a DeployRequest object from map
(deploy-request {:artifacts [{:group "im.chit" :artifact "hara.string" :version "2.4.8" :extension "jar" :file "hara-string.jar"}] :repository {:id "clojars" :url "https://clojars.org/repo/" :authentication {:username "zcaudate" :password "hello"}}}) ;;=> #req.deploy{:artifacts ["im.chit:hara.string:jar:2.4.8"] ;; :repository {:id "clojars", ;; :authentication {:username "zcaudate", :password "hello"} ;; :url "https://clojars.org/repo/"}}
creates a `DeployRequest` object from map
(deploy-request
{:artifacts [{:group "im.chit"
:artifact "hara.string"
:version "2.4.8"
:extension "jar"
:file "hara-string.jar"}]
:repository {:id "clojars"
:url "https://clojars.org/repo/"
:authentication {:username "zcaudate"
:password "hello"}}})
;;=> #req.deploy{:artifacts ["im.chit:hara.string:jar:2.4.8"]
;; :repository {:id "clojars",
;; :authentication {:username "zcaudate", :password "hello"}
;; :url "https://clojars.org/repo/"}}
(install-request {:keys [artifacts] :as m})creates a InstallRequest object from map
(install-request {:artifacts [{:group "im.chit" :artifact "hara.string" :version "2.4.8" :extension "jar" :file "hara-string.jar"} {:group "im.chit" :artifact "hara.string" :version "2.4.8" :extension "pom" :file "hara-string.pom"}]}) ;;=> #req.install{:artifacts ["im.chit:hara.string:jar:2.4.8" ;; "im.chit:hara.string:pom:2.4.8"] ;; :metadata []}
creates a `InstallRequest` object from map
(install-request
{:artifacts [{:group "im.chit"
:artifact "hara.string"
:version "2.4.8"
:extension "jar"
:file "hara-string.jar"}
{:group "im.chit"
:artifact "hara.string"
:version "2.4.8"
:extension "pom"
:file "hara-string.pom"}]})
;;=> #req.install{:artifacts ["im.chit:hara.string:jar:2.4.8"
;; "im.chit:hara.string:pom:2.4.8"]
;; :metadata []}
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 |