Fork me on GitHub
#leiningen
<
2017-12-20
>
xiongtx03:12:14

Does Leiningen store REPL inputs? CIDER apparently stores REPL inputs itself, so I'm guessing the answer is no.

xiongtx03:12:05

The context is that I'm trying to figure out how to implement something like JShell's /save functionality, perhaps as nREPL middleware: https://docs.oracle.com/javase/9/tools/jshell.htm#JSWOR-GUID-C337353B-074A-431C-993F-60C226163F00

Alex Miller (Clojure team)04:12:32

you can start your own repl that takes over all the various repl phases and do whatever you like (see clojure.main/repl) - http://clojure.github.io/clojure/clojure.main-api.html#clojure.main/repl

Alex Miller (Clojure team)04:12:21

although I guess that doesn’t help you in nrepl land as that’s the stream-based repl

noisesmith17:12:21

the lein repl uses a history file created by readline .lein-repl-history

Joaco22:12:48

Hi all, anybody know if leiningen have something similar to ci Friendly Versions of maven?

Joaco23:12:18

I found a solution: in my project.clj I define a var like : (def build-version (or (System/getenv "BUILD_NUMBER") "LOCAL")) and assigned in defproject: (defproject my-awesome-project build-version and then launch BUILD_NUMBER="1.2.3" lein do test, uberjar