Liking cljdoc? Tell your friends :D

leiningen.core.classpath

Calculate project classpaths by resolving dependencies via Aether.

Calculate project classpaths by resolving dependencies via Aether.
raw docstring

*seen*clj

source

add-repo-authclj

(add-repo-auth [id repo])

Repository credentials (a map containing some of #{:username :password :passphrase :private-key-file}) are discovered from:

  1. Looking up the repository URL in the ~/.lein/credentials.clj.gpg map
  2. Scanning that map for regular expression keys that match the repository URL.

So, a credentials map that contains an entry:

{#"http://maven.company.com/.*" {:username "abc" :password "xyz"}}

would be applied to all repositories with URLs matching the regex key that didn't have an explicit entry.

Repository credentials (a map containing some of
#{:username :password :passphrase :private-key-file}) are discovered
from:

1. Looking up the repository URL in the ~/.lein/credentials.clj.gpg map
2. Scanning that map for regular expression keys that match the
   repository URL.

So, a credentials map that contains an entry:

  {#"http://maven.company.com/.*" {:username "abc" :password "xyz"}}

would be applied to all repositories with URLs matching the regex key
that didn't have an explicit entry.
sourceraw docstring

checkout-deps-pathsclj

(checkout-deps-paths {:keys [checkout-deps-shares root] :as project})

Checkout dependencies are used to place source for a dependency project directly on the classpath rather than having to install the dependency and restart the dependent project.

Checkout dependencies are used to place source for a dependency
project directly on the classpath rather than having to install the
dependency and restart the dependent project.
sourceraw docstring

dependency-hierarchyclj

(dependency-hierarchy dependencies-key project & options)

Returns a graph of the project's dependencies.

Returns a graph of the project's dependencies.
sourceraw docstring

ext-classpathclj

(ext-classpath project)

Classpath of the extensions dependencies in project as a list of strings.

Classpath of the extensions dependencies in project as a list of strings.
sourceraw docstring

ext-dependency?clj

(ext-dependency? dep)

Should the given dependency be loaded in the extensions classloader?

Should the given dependency be loaded in the extensions classloader?
sourceraw docstring

extract-native-dep!clj

(extract-native-dep! native-path file native-prefix)

Extracts native content into the native path. Returns true if at least one file was extracted.

Extracts native content into the native path. Returns true if at least one
file was extracted.
sourceraw docstring

extract-native-depscljdeprecated

(extract-native-deps files native-path native-prefixes)
source

get-classpathclj

(get-classpath project)

Return the classpath for project as a list of strings.

Return the classpath for project as a list of strings.
sourceraw docstring

get-dependenciesclj

(get-dependencies dependencies-key managed-dependencies-key project & args)
source

get-native-prefixclj

(get-native-prefix [id version & {:as opts}])

Return the :native-prefix of a dependency vector, or nil.

Return the :native-prefix of a dependency vector, or nil.
sourceraw docstring

get-non-proxy-hostsclj

(get-non-proxy-hosts)
source

get-proxy-settingsclj

(get-proxy-settings)
(get-proxy-settings key)

Returns a map of the JVM proxy settings

Returns a map of the JVM proxy settings
sourceraw docstring

managed-dependency-hierarchyclj

(managed-dependency-hierarchy dependencies-key
                              managed-dependencies-key
                              project
                              &
                              options)

Returns a graph of the project's dependencies.

Supports inheriting 'managed' dependencies, e.g. to allow common dependency versions to be specified from an alternate location in the project file, or from a parent project file.

Returns a graph of the project's dependencies.

Supports inheriting 'managed' dependencies, e.g. to allow common dependency
versions to be specified from an alternate location in the project file, or
from a parent project file.
sourceraw docstring

merge-versions-from-managed-coordsclj

(merge-versions-from-managed-coords deps managed-deps)
source

native-dependency-infoclj

(native-dependency-info dependency)

Returns the dependency information about a dependency on the form [id version native-prefix] if the dependency is not nil.

Returns the dependency information about a dependency on the form
[id version native-prefix] if the dependency is not nil.
sourceraw docstring

normalize-dep-vectorclj

(normalize-dep-vector dep)

Normalize the vector for a single dependency, to ensure it is compatible with the format expected by pomegranate. The main purpose of this function is to to detect the case where the version string for a dependency has been omitted, due to the use of :managed-dependencies, and to inject a nil into the vector in the place where the version string should be.

Normalize the vector for a single dependency, to ensure it is compatible with
the format expected by pomegranate.  The main purpose of this function is to
to detect the case where the version string for a dependency has been omitted,
due to the use of `:managed-dependencies`, and to inject a `nil` into the
vector in the place where the version string should be.
sourceraw docstring

normalize-dep-vectorsclj

(normalize-dep-vectors deps)

Normalize the vectors for the :dependencies section of the project. This ensures that they are compatible with the format expected by pomegranate. The main purpose of this function is to to detect the case where the version string for a dependency has been omitted, due to the use of :managed-dependencies, and to inject a nil into the vector in the place where the version string should be.

Normalize the vectors for the `:dependencies` section of the project.  This
ensures that they are compatible with the format expected by pomegranate.
The main purpose of this function is to to detect the case where the version
string for a dependency has been omitted, due to the use of `:managed-dependencies`,
and to inject a `nil` into the vector in the place where the version string
should be.
sourceraw docstring

outdated-swap!clj

(outdated-swap! project identifier cmp-val f & args)

Performs f if cmp-val is not equal to the old compare value. f is then called with (f outdated-val args...). If no previous cached result is found, then outdated-val is set to nil.

The comparison value and cached value is stored in :target-path/stale/identifier. Make sure your identifier is unique, e.g. by providing your namespace and function name. The values will be read through read-string and printed with pr-str.

outdated-swap! will not run outside of projects.

Performs f if cmp-val is not equal to the old compare value. f is
then called with (f outdated-val args...). If no previous cached
result is found, then outdated-val is set to nil.

The comparison value and cached value is stored
in :target-path/stale/`identifier`. Make sure your identifier is
unique, e.g. by providing your namespace and function name. The
values will be read through read-string and printed with pr-str.

outdated-swap! will not run outside of projects.
sourceraw docstring

resolve-dependenciescljdeprecated

(resolve-dependencies dependencies-key project & rest)

Delegate dependencies to pomegranate. This will ensure they are downloaded into ~/.m2/repository and that native components of dependencies have been extracted to :native-path. If :add-classpath? is logically true, will add the resolved dependencies to Leiningen's classpath.

Returns a seq of the dependencies' files.

NOTE: deprecated in favor of resolve-managed-dependencies.

Delegate dependencies to pomegranate. This will ensure they are
downloaded into ~/.m2/repository and that native components of
dependencies have been extracted to :native-path. If :add-classpath?
is logically true, will add the resolved dependencies to Leiningen's
classpath.

Returns a seq of the dependencies' files.

NOTE: deprecated in favor of `resolve-managed-dependencies`.
sourceraw docstring

resolve-managed-dependenciesclj

(resolve-managed-dependencies dependencies-key
                              managed-dependencies-key
                              project
                              &
                              rest)

Delegate dependencies to pomegranate. This will ensure they are downloaded into ~/.m2/repository and that native components of dependencies have been extracted to :native-path. If :add-classpath? is logically true, will add the resolved dependencies to Leiningen's classpath.

Supports inheriting 'managed' dependencies, e.g. to allow common dependency versions to be specified from an alternate location in the project file, or from a parent project file.

Returns a seq of the dependencies' files.

Delegate dependencies to pomegranate. This will ensure they are
downloaded into ~/.m2/repository and that native components of
dependencies have been extracted to :native-path. If :add-classpath?
is logically true, will add the resolved dependencies to Leiningen's
classpath.

Supports inheriting 'managed' dependencies, e.g. to allow common dependency
versions to be specified from an alternate location in the project file, or
from a parent project file.

Returns a seq of the dependencies' files.
sourceraw docstring

when-stalecljdeprecated

(when-stale token keys project f & args)

DEPRECATED: Use outdated-swap! instead.

Call f with args when keys in project.clj have changed since the last run. Stores value of project keys in stale directory inside :target-path. Because multiple callers may check the same keys, you must also provide a token to keep your stale value separate. Returns true if the code was executed and nil otherwise.

DEPRECATED: Use outdated-swap! instead.

Call f with args when keys in project.clj have changed since the last
run. Stores value of project keys in stale directory inside :target-path.
Because multiple callers may check the same keys, you must also provide a
token to keep your stale value separate. Returns true if the code was executed
and nil otherwise.
sourceraw docstring

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

× close