Upgrade deps, note use of upstream Clojure

This commit is contained in:
Ben Sturmfels 2026-02-17 13:11:46 +11:00
parent 08585f7fca
commit dc89a21839
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
4 changed files with 10 additions and 9 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh
# Run the program without building it
clojure -M -m core "$@"
clojure -M:dev "$@"

View file

@ -14,8 +14,6 @@
(defn uber [_]
(clean nil)
(b/copy-dir {:src-dirs ["src" "resources"]
:target-dir class-dir})
(b/copy-dir {:src-dirs ["src" "resources"]
:target-dir class-dir})
(b/compile-clj {:basis @basis

View file

@ -1,10 +1,12 @@
{:paths ["src" "resources" "private"] ;; Private is not included in the build
:deps {
org.clojure/clojure {:mvn/version "1.11.1"}
org.clojure/data.csv {:mvn/version "1.0.1"}
org.clojure/tools.cli {:mvn/version "1.1.230"}}
;; Note that the clojure version below will be installed from upstream
;; rather than using the system version.
org.clojure/clojure {:mvn/version "1.12.4"}
org.clojure/data.csv {:mvn/version "1.1.1"}
org.clojure/tools.cli {:mvn/version "1.3.250"}}
:aliases
{:dev {:extra-deps {lambdaisland/deep-diff2 {:mvn/version "2.10.211"}}
{:dev {:extra-deps {lambdaisland/deep-diff2 {:mvn/version "2.12.219"}}
:main-opts ["-m" "core"]
;; Saves ~ 1 second of startup time - 1.5 sec on my laptop. After
;; building an uberjar and running with these options, it drops to about
@ -13,5 +15,5 @@
:test {:extra-deps {lambdaisland/kaocha {:mvn/version "1.87.1366"}}
:main-opts ["-m" "kaocha.runner"]}
;; Run with clj -T:build function-in-build
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.9.6"}}
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.10.12"}}
:ns-default build}}}

View file

@ -4,9 +4,10 @@
;; develop/build the program. Use it with `guix shell --manifest=manifest.scm`.
(specifications->manifest
(list
;; No issues running this OpenJDK 21 program on Debian Stable (OpenJDK 17).
;; No issues running this OpenJDK 21 program on Debian Bookworm (OpenJDK 17).
"openjdk@21:jdk"
"clojure-tools"
"rlwrap"
"clj-kondo"
"beancount"
))