(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 :classpath-roots - vector of paths in classpath order
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 :classpath-roots - vector of paths in classpath order
(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.
(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
(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
(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!
(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.
(make-classpath-map deps-edn-map lib-map 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 a map: :classpath map of path entry (string) to a map describing where its from, either a :lib-name or :path-key entry. :classpath-roots coll of the classpath keys in classpath order
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 a map: :classpath map of path entry (string) to a map describing where its from, either a :lib-name or :path-key entry. :classpath-roots coll of the classpath keys in classpath order
(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.
(print-tree lib-map)
Print lib-map tree to the console
Print lib-map tree to the console
(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).
(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
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close