Liking cljdoc? Tell your friends :D

clojure.tools.deps.alpha


calc-basisclj

(calc-basis master-edn)
(calc-basis master-edn {:keys [resolve-args classpath-args]})

Calculates and returns the runtime basis from a master deps edn map, modifying resolve-deps and make-classpath args as needed.

master-edn - a master deps edn map args - an optional map of arguments to constituent steps, keys: :resolve-args - map of args to resolve-deps, with possible keys: :extra-deps :override-deps :default-deps :threads - number of threads to use during deps resolution :trace - flag to record a trace log :classpath-args - map of args to make-classpath-map, with possible keys: :extra-paths :classpath-overrides

Returns the runtime basis, which is the initial deps edn map plus these keys: :resolve-args - the resolve args passed in, if any :classpath-args - the classpath args passed in, if any :libs - lib map, per resolve-deps :classpath - classpath map per make-classpath-map

Calculates and returns the runtime basis from a master deps edn map, modifying
 resolve-deps and make-classpath args as needed.

  master-edn - a master deps edn map
  args - an optional map of arguments to constituent steps, keys:
    :resolve-args - map of args to resolve-deps, with possible keys:
      :extra-deps
      :override-deps
      :default-deps
      :threads - number of threads to use during deps resolution
      :trace - flag to record a trace log
    :classpath-args - map of args to make-classpath-map, with possible keys:
      :extra-paths
      :classpath-overrides

Returns the runtime basis, which is the initial deps edn map plus these keys:
  :resolve-args - the resolve args passed in, if any
  :classpath-args - the classpath args passed in, if any
  :libs - lib map, per resolve-deps
  :classpath - classpath map per make-classpath-map
sourceraw docstring

combine-aliasesclj

(combine-aliases edn-map alias-kws)

Find, read, and combine alias maps identified by alias keywords from a deps edn map into a single args map.

Find, read, and combine alias maps identified by alias keywords from
a deps edn map into a single args map.
sourceraw docstring

find-edn-mapsclj

(find-edn-maps)
(find-edn-maps project-edn-file)

Finds and returns standard deps edn maps in a map with keys :root-edn, :user-edn, :project-edn If no project-edn is supplied, use the deps.edn in current directory

Finds and returns standard deps edn maps in a map with keys
  :root-edn, :user-edn, :project-edn
If no project-edn is supplied, use the deps.edn in current directory
sourceraw docstring

join-classpathclj

(join-classpath roots)

Takes a coll of string classpath roots and creates a platform sensitive classpath

Takes a coll of string classpath roots and creates a platform sensitive classpath
sourceraw docstring

lib-locationclj

(lib-location lib coord deps-config)

Find the file path location of where a lib/coord would be located if procured without actually doing the procuring!

Find the file path location of where a lib/coord would be located if procured
without actually doing the procuring!
sourceraw docstring

make-classpathclj

(make-classpath lib-map paths classpath-args)

Takes a lib map, and a set of explicit paths. Extracts the paths for each chosen lib coordinate, and assembles a classpath string using the system path separator. The classpath-args is a map with keys that can be used to modify the classpath building operation:

:extra-paths - extra classpath paths to add to the classpath :classpath-overrides - a map of lib to path, where path is used instead of the coord's paths

Returns the classpath as a string.

Takes a lib map, and a set of explicit paths. Extracts the paths for each chosen
lib coordinate, and assembles a classpath string using the system path separator.
The classpath-args is a map with keys that can be used to modify the classpath
building operation:

  :extra-paths - extra classpath paths to add to the classpath
  :classpath-overrides - a map of lib to path, where path is used instead of the coord's paths

Returns the classpath as a string.
sourceraw docstring

make-classpath-mapclj

(make-classpath-map {:keys [paths aliases] :as deps-edn-map}
                    lib-map
                    {:keys [classpath-overrides extra-paths]
                     :as classpath-args})

Takes a merged deps edn map and a lib map. Extracts the paths for each chosen lib coordinate, and assembles a classpath map. The classpath-args is a map with keys that can be used to modify the classpath building operation:

:extra-paths - extra classpath paths to add to the classpath :classpath-overrides - a map of lib to path, where path is used instead of the coord's paths

Returns the classpath as a map from a path entry (string) to a map describing where its from, with either a :lib-name or :path-key entry.

Takes a merged deps edn map and a lib map. Extracts the paths for each chosen
lib coordinate, and assembles a classpath map. The classpath-args is a map with
keys that can be used to modify the classpath building operation:

  :extra-paths - extra classpath paths to add to the classpath
  :classpath-overrides - a map of lib to path, where path is used instead of the coord's paths

Returns the classpath as a map from a path entry (string) to a map describing where its from,
with either a :lib-name or :path-key entry.
sourceraw docstring

merge-ednsclj

(merge-edns deps-edn-maps)

Merge multiple deps edn maps from left to right into a single deps edn map.

Merge multiple deps edn maps from left to right into a single deps edn map.
sourceraw docstring

(print-tree lib-map)

Print lib-map tree to the console

Print lib-map tree to the console
sourceraw docstring

resolve-depsclj

(resolve-deps deps-map args-map)

Takes a deps configuration map and resolves the transitive dependency graph from the initial set of deps. args-map is a map with several keys (all optional) that can modify the results of the transitive expansion:

:extra-deps - a map from lib to coord of deps to add to the main deps :override-deps - a map from lib to coord of coord to use instead of those in the graph :default-deps - a map from lib to coord of deps to use if no coord specified :trace - boolean. If true, the returned lib map will have metadata with :trace log :threads - long. If provided, sets the number of concurrent download threads

Returns a lib map (map of lib to coordinate chosen).

Takes a deps configuration map and resolves the transitive dependency graph
from the initial set of deps. args-map is a map with several keys (all
optional) that can modify the results of the transitive expansion:

  :extra-deps - a map from lib to coord of deps to add to the main deps
  :override-deps - a map from lib to coord of coord to use instead of those in the graph
  :default-deps - a map from lib to coord of deps to use if no coord specified
  :trace - boolean. If true, the returned lib map will have metadata with :trace log
  :threads - long. If provided, sets the number of concurrent download threads

Returns a lib map (map of lib to coordinate chosen).
sourceraw docstring

root-depsclj

(root-deps)

Read the root deps.edn resource from the classpath at the path clojure/tools/deps/deps.edn

Read the root deps.edn resource from the classpath at the path
clojure/tools/deps/deps.edn
sourceraw docstring

slurp-depsclj

(slurp-deps dep-file)

Read a single deps.edn file from disk and canonicalize symbols, return a deps map.

Read a single deps.edn file from disk and canonicalize symbols,
return a deps map.
sourceraw docstring

toolclj

(tool project-edn tool-args)

Transform project edn for tool by applying tool args (keys = :paths, :deps) and returning an updated project edn.

Transform project edn for tool by applying tool args (keys = :paths, :deps) and
returning an updated project edn.
sourceraw docstring

user-deps-pathclj

(user-deps-path)

Use the same logic as clj to calculate the location of the user deps.edn. Note that it's possible no file may exist at this location.

Use the same logic as clj to calculate the location of the user deps.edn.
Note that it's possible no file may exist at this location.
sourceraw docstring

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

× close