How to display Clojure version in REPL?

Even shorter :

user> (clojure-version)
"1.2.0-beta1"
user> 

Oops, I have to upgrade...


Very close.

user> (println *clojure-version*)
{:major 1, :minor 2, :incremental 0, :qualifier }
nil

Most builtin "global" variables like this have Common Lisp-style asterisk "earmuffs".


Just typing *clojure-version* will do the trick.

*clojure-version*
=> {:major 1, :minor 3, :incremental 0, :qualifier nil}