ClojureDocs

Nav

Namespaces

Take the 2026 State of Clojure Survey! Help shape the future of Clojure — open through Nov 30. Take Survey →
core.async
core.logic
data.csv
spec.alpha
tools.build
  • clojure
tools.deps

add-lib

clojure.repl.deps

Available since 1.12 (source)
  • (add-lib lib coord)
  • (add-lib lib)
Given a lib that is not yet on the repl classpath, make it available by
downloading the library if necessary and adding it to the classloader.
Libs already on the classpath are not updated. Requires a valid parent
DynamicClassLoader.
  lib - symbol identifying a library, for Maven: groupId/artifactId
 coord - optional map of location information specific to the procurer,
         or latest if not supplied
 Returns coll of libs loaded, including transitive (or nil if none).
 For info on libs, coords, and versions, see:
 https://clojure.org/reference/deps_and_cli