Skip to content

Commit

Permalink
clojure-cli: install deps.edn configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Nov 14, 2023
1 parent a5197bb commit 3e2a621
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## Changed
- dev: changelog-check checkout action v4 with sparse-checkout
- dev: changelog-check remove paths-ignore
- clojure-cli: install deps.edn configuration

## Added
- button link to Clojure CLI releases changelog to view available versions
Expand Down
25 changes: 25 additions & 0 deletions docs/clojure-cli/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,31 @@ Clojure CLI install has a built-in configuration:
* `org.clojure/clojure` library dependency, setting the default version of Clojure for the Clojure CLI
* `src` set as the default path

??? INFO "Clojure CLI Install deps.edn"
The Clojure CLI install includes a `deps.edn` configuration, e.g. `/usr/local/lib/clojure/deps.edn`
```clojure
{
:paths ["src"]

:deps {
org.clojure/clojure {:mvn/version "1.11.1"}
}

:aliases {
:deps {:replace-paths []
:replace-deps {org.clojure/tools.deps.cli {:mvn/version "0.9.10"}}
:ns-default clojure.tools.deps.cli.api
:ns-aliases {help clojure.tools.deps.cli.help}}
:test {:extra-paths ["test"]}
}

:mvn/repos {
"central" {:url "https://repo1.maven.org/maven2/"}
"clojars" {:url "https://repo.clojars.org/"}
}
}
```

??? INFO "Check version of Clojure"
Evaluate `*clojure-version*` in a REPL shows which version of the Clojure language is currently being used.

Expand Down

0 comments on commit 3e2a621

Please sign in to comment.