Read project.clj files.
Read project.clj files.
(activate-middleware project)
A helper function to apply middleware and then load certificates and hooks, since we always do these three things together, at least so far.
A helper function to apply middleware and then load certificates and hooks, since we always do these three things together, at least so far.
(add-profiles project profiles-map)
Add the profiles in the given profiles map to the project map, taking care to preserve project map metadata. Note that these profiles are not merged, merely made available to merge by name.
Add the profiles in the given profiles map to the project map, taking care to preserve project map metadata. Note that these profiles are not merged, merely made available to merge by name.
(composite-profile? profile)
Returns true if the profile is composite, false otherwise.
Returns true if the profile is composite, false otherwise.
Profiles get merged into the project map. The :dev, :provided, and :user profiles are active by default.
Profiles get merged into the project map. The :dev, :provided, and :user profiles are active by default.
(defproject project-name version & args)
The project.clj file must either def a project map or call this macro.
See lein help sample
to see what arguments it accepts.
The project.clj file must either def a project map or call this macro. See `lein help sample` to see what arguments it accepts.
(dep-key dep)
The unique key used to dedupe dependencies.
The unique key used to dedupe dependencies.
(dependency-map dep)
Transform a dependency vector into a map that is easier to combine with meta-merge. This allows a profile to override specific dependency options.
Transform a dependency vector into a map that is easier to combine with meta-merge. This allows a profile to override specific dependency options.
(dependency-vec dep)
Transform a dependency map back into a vector of the form: [name/group "version" & opts]
Transform a dependency map back into a vector of the form: [name/group "version" & opts]
(exclusion-map spec)
Transform an exclusion vector into a map that is easier to combine with meta-merge. This allows a profile to override specific exclusion options.
Transform an exclusion vector into a map that is easier to combine with meta-merge. This allows a profile to override specific exclusion options.
(exclusion-vec exclusion)
Transform an exclusion map back into a vector of the form: [name/group & opts]
Transform an exclusion map back into a vector of the form: [name/group & opts]
(expand-profile project profile)
Recursively expand the keyword profile
in project
to a sequence of
atomic (non-composite) profile keywords.
Recursively expand the keyword `profile` in `project` to a sequence of atomic (non-composite) profile keywords.
(expand-profile-with-meta project profile)
Recursively expand the keyword profile
in project
to a sequence of
vectors of atomic (non-composite) profile keywords and their inherited
metadata.
Recursively expand the keyword `profile` in `project` to a sequence of vectors of atomic (non-composite) profile keywords and their inherited metadata.
(expand-profiles project profiles)
Recursively expand a collection of profiles
Recursively expand a collection of profiles
(expand-profiles-with-meta project profiles)
Recursively expand a collection of profiles
Recursively expand a collection of profiles
(init-lein-classpath project)
Adds dependencies to Leiningen's classpath if required.
Adds dependencies to Leiningen's classpath if required.
(init-profiles project include-profiles & [exclude-profiles])
Compute a fresh version of the project map, including and excluding the specified profiles.
Compute a fresh version of the project map, including and excluding the specified profiles.
(init-project project)
(init-project project default-profiles)
Initializes a project by loading certificates, plugins, middleware, etc. Also merges default profiles.
Initializes a project by loading certificates, plugins, middleware, etc. Also merges default profiles.
(load-certificates project)
Load the SSL certificates specified by the project and register them for use by Aether.
Load the SSL certificates specified by the project and register them for use by Aether.
(load-plugins project)
(load-plugins project dependencies-key)
(load-plugins project dependencies-key managed-dependencies-key)
(merge-profiles project profiles)
Compute a fresh version of the project map with the given profiles merged into list of active profiles and the appropriate middleware applied.
Compute a fresh version of the project map with the given profiles merged into list of active profiles and the appropriate middleware applied.
(non-leaky-profiles project)
Return a sequence of profile keywords for the non-leaky profiles currently included in the project.
Return a sequence of profile keywords for the non-leaky profiles currently included in the project.
(normalize-values map)
Transform values within a project or profile map to normalized values, such that internal functions can assume that the values are already normalized.
Transform values within a project or profile map to normalized values, such that internal functions can assume that the values are already normalized.
(pom-scope-profiles project scope)
Return a sequence of profile keywords for the currently active project profiles with :pom-scope equal to scope.
Return a sequence of profile keywords for the currently active project profiles with :pom-scope equal to scope.
(profile-annotations project)
Return a map of profile keyword to profile annotations for the profiles in :include-profiles.
Return a map of profile keyword to profile annotations for the profiles in :include-profiles.
(profiles-with-matching-meta project pred)
Return a sequence of profile keywords for the project profiles that have metadata that satisfies the predicate, pred.
Return a sequence of profile keywords for the project profiles that have metadata that satisfies the predicate, pred.
(project-with-profiles project)
(project-with-profiles project profiles)
(read)
(read file)
(read file profiles)
Read project map out of file, which defaults to project.clj. Also initializes the project; see read-raw for a version that skips init.
Read project map out of file, which defaults to project.clj. Also initializes the project; see read-raw for a version that skips init.
(read-checkouts project)
Returns a list of project maps for this project's checkout dependencies.
Returns a list of project maps for this project's checkout dependencies.
(read-profiles project)
Read profiles from a variety of sources.
We check Leiningen's defaults, system-level profiles (usually in /etc), the profiles.clj file in ~/.lein, the profiles.clj file in the project root, and the :profiles key from the project map.
Read profiles from a variety of sources. We check Leiningen's defaults, system-level profiles (usually in /etc), the profiles.clj file in ~/.lein, the profiles.clj file in the project root, and the :profiles key from the project map.
(read-raw source)
Read project file without loading certificates, plugins, middleware, etc.
Read project file without loading certificates, plugins, middleware, etc.
(retain-whitelisted-keys new original)
Retains the whitelisted keys from the original map in the new one.
Retains the whitelisted keys from the original map in the new one.
(set-profiles project include-profiles & [exclude-profiles])
Compute a fresh version of the project map, with middleware applied, including and excluding the specified profiles.
Compute a fresh version of the project map, with middleware applied, including and excluding the specified profiles.
(unmerge-profiles project profiles)
Compute a fresh version of the project map with the given profiles unmerged from list of active profiles and the appropriate middleware applied.
Compute a fresh version of the project map with the given profiles unmerged from list of active profiles and the appropriate middleware applied.
Project keys which don't affect the production of the jar (sans its name) should be propagated to the compilation phase and not stripped out.
Project keys which don't affect the production of the jar (sans its name) should be propagated to the compilation phase and not stripped out.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close