Part of org.clojure/tools.deps.alpha library (from add-lib
branch)
Add the following project dependency:
;; project.clj or build.boot
[clj-deps "0.3.25"]
;; deps.edn
{:deps {clj-deps {:mvn/version "0.3.25"}}}
(ns example
(:require [clj-deps.core :as deps]))
;; load library from git by https
(deps/add-lib 'org.apache.commons/commons-lang3 {:git/url "https://github.com/apache/commons-lang.git"
:sha "c21484b730221bc87ca26553155350292aa30f0d"})
;; => true
;; load library from git by ssh
(deps/add-lib 'org.apache.commons/commons-lang3 {:git/url "git@github.com:apache/commons-lang.git"
:sha "c21484b730221bc87ca26553155350292aa30f0d"})
;; => true
;; load library from maven
(deps/add-lib 'org.clojure/core.memoize {:mvn/version "0.7.1"})
;; => true
;; load library from your own repository
(deps/add-lib 'group-id/artifact-id {:mvn/version "1.2.3"}
{:mvn/repos {"repo-name" {:url "https://repo.org"}}})
;; => true
;; load library from local root
(deps/add-lib 'group-id/artifact-id {:local/root "/path/to/file.jar"})
;; => true
$ make repl
$ make test
$ make bump
$ make build
$ make deploy
Copyright © 2019 Ilshat Sultanov
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close