Liking cljdoc? Tell your friends :D

leiningen.core.project

Read project.clj files.

Read project.clj files.
raw docstring

*memoize-middleware*clj

Memoize middleware. This is enabled when running lein from the command line, but is otherwise disabled by default. Middleware memoization can be disabled by setting :memoize-middleware? false in the project map or user profile.

Memoize middleware.
This is enabled when running lein from the command line, but is otherwise
disabled by default. Middleware memoization can be disabled by setting
`:memoize-middleware? false` in the project map or user profile.
raw docstring

absolutize-pathsclj

(absolutize-paths project)

activate-middlewareclj

(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.
raw docstring

add-profilesclj

(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.
raw docstring

apply-middlewareclj

(apply-middleware project)
(apply-middleware project middleware-name)

artifact-idclj

(artifact-id id)

artifact-mapclj

(artifact-map id)

composite-profile?clj

(composite-profile? profile)

Returns true if the profile is composite, false otherwise.

Returns true if the profile is composite, false otherwise.
raw docstring

default-jvm-optsclj


default-profile-metadataclj


default-profilesclj

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.
raw docstring

default-repositoriesclj


defaultsclj


defprojectcljmacro

(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.
raw docstring

dep-keyclj

(dep-key dep)

The unique key used to dedupe dependencies.

The unique key used to dedupe dependencies.
raw docstring

dependency-mapclj

(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.
raw docstring

dependency-vecclj

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

deploy-repositoriesclj


empty-dependenciesclj


empty-pathsclj


empty-repositoriesclj


ensure-dynamic-classloaderclj

(ensure-dynamic-classloader)

exclusion-mapclj

(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.
raw docstring

exclusion-vecclj

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

expand-profileclj

(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.
raw docstring

expand-profile-with-metaclj

(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.
raw docstring

expand-profilesclj

(expand-profiles project profiles)

Recursively expand a collection of profiles

Recursively expand a collection of profiles
raw docstring

expand-profiles-with-metaclj

(expand-profiles-with-meta project profiles)

Recursively expand a collection of profiles

Recursively expand a collection of profiles
raw docstring

group-idclj

(group-id id)

init-lein-classpathclj

(init-lein-classpath project)

Adds dependencies to Leiningen's classpath if required.

Adds dependencies to Leiningen's classpath if required.
raw docstring

init-profilesclj

(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.
raw docstring

init-projectclj

(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.
raw docstring

load-certificatesclj

(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.
raw docstring

load-hooksclj

(load-hooks project & [ignore-missing?])

load-pluginsclj

(load-plugins project)
(load-plugins project dependencies-key)
(load-plugins project dependencies-key managed-dependencies-key)

makeclj

(make project)
(make project project-name version root)

make-project-propertiesclj

(make-project-properties project)

merge-profilesclj

(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.
raw docstring

meta-mergeclj

(meta-merge left right)

Recursively merge values based on the information in their metadata.

Recursively merge values based on the information in their metadata.
raw docstring

non-leaky-profilesclj

(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.
raw docstring

normalize-aotclj

(normalize-aot project)

normalize-valuesclj

(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.
raw docstring

plugin-varsclj

(plugin-vars project type)

pom-scope-profilesclj

(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.
raw docstring

profile-annotationsclj

(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.
raw docstring

profile-scope-target-pathclj

(profile-scope-target-path project profiles)

profiles-with-matching-metaclj

(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.
raw docstring

project-profilesclj

(project-profiles project)

project-with-profilesclj

(project-with-profiles project)
(project-with-profiles project profiles)

project-with-profiles-metaclj

(project-with-profiles-meta project profiles)

readclj

(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.
raw docstring

read-checkoutsclj

(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.
raw docstring

read-profilesclj

(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.
raw docstring

read-rawclj

(read-raw source)

Read project file without loading certificates, plugins, middleware, etc.

Read project file without loading certificates, plugins, middleware, etc.
raw docstring

retain-whitelisted-keysclj

(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.
raw docstring

set-profilesclj

(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.
raw docstring

target-path-subdirsclj

(target-path-subdirs {:keys [target-path] :as project} key)

tiered-jvm-optsclj


unmerge-profilesclj

(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.
raw docstring

warn-onceclj


whitelist-keysclj

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.
raw docstring

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

× close