Liking cljdoc? Tell your friends :D

lucid.aether.request


artifact-mapclj


artifact-requestclj

(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 ""}
raw docstring

collect-mapclj


collect-requestclj

(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/"}]}
raw docstring

dependency-requestclj

(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/"}]}
raw docstring

deploy-requestclj

(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/"}}
 
raw docstring

install-mapclj


install-requestclj

(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 []}
raw docstring

repositories-mapclj

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close