Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/borkdude/deps.add-lib
Clojure 1.12's add-lib feature for leiningen and/or other environments without a specific version of the clojure CLI
https://github.com/borkdude/deps.add-lib
clojure leiningen repl
Last synced: 4 months ago
JSON representation
Clojure 1.12's add-lib feature for leiningen and/or other environments without a specific version of the clojure CLI
- Host: GitHub
- URL: https://github.com/borkdude/deps.add-lib
- Owner: borkdude
- Created: 2023-04-15T19:43:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-22T13:45:29.000Z (over 1 year ago)
- Last Synced: 2024-10-04T16:12:07.363Z (4 months ago)
- Topics: clojure, leiningen, repl
- Language: Clojure
- Homepage:
- Size: 6.84 KB
- Stars: 13
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deps.add-lib
[![Clojars Project](https://img.shields.io/clojars/v/io.github.borkdude/deps.add-lib.svg)](https://clojars.org/io.github.borkdude/deps.add-lib)
Clojure 1.12's `add-lib` combined with [deps.clj](https://github.com/borkdude/deps.clj).
This projects brings Clojure's new `add-lib` function to leiningen and/or other
environments that do not have a or a specific version of the clojure CLI
installed.## Status
Experimental, use as a dev-only tool.
## Usage
To use this, add `io.github.borkdude/deps.add-lib {:mvn/version ""}` to your
`deps.edn` or `project.clj`.E.g. in your `project.clj`:
``` clojure
(defproject my-project "0.0.1"
:dependencies [[org.clojure/clojure "1.12.0-alpha2"]
[io.github.borkdude/deps.add-lib ""]])
```And then REPL away:
``` clojure
(require '[borkdude.deps.add-lib :refer [add-lib]])
(add-lib 'medley/medley)
(require 'medley.core) ;; bingo
```