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