Calculate project classpaths by resolving dependencies via Aether.
Calculate project classpaths by resolving dependencies via Aether.
(add-repo-auth [id repo])
Repository credentials (a map containing some of #{:username :password :passphrase :private-key-file}) are discovered from:
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.
(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.
(default-aether-args {:keys [repositories local-repo offline? update checksum
mirrors]
:as project})
Returns a map of keyword arguments to be used with Pomegranate Aether dependency resolution for the given project.
Returns a map of keyword arguments to be used with Pomegranate Aether dependency resolution for the given project.
(dependency-hierarchy dependencies-key project & options)
Returns a graph of the project's dependencies.
Returns a graph of the project's dependencies.
(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.
(ext-dependency? dep)
Should the given dependency be loaded in the extensions classloader?
Should the given dependency be loaded in the extensions classloader?
(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.
(get-classpath project)
Return the classpath for project as a list of strings.
Return the classpath for project as a list of strings.
(get-dependencies dependencies-key managed-dependencies-key project & args)
(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.
(get-proxy-settings)
(get-proxy-settings key)
Returns a map of the JVM proxy settings
Returns a map of the JVM proxy settings
(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.
(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.
(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.
(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.
(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.
(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`.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close