Changing the version in project.clj using `lein change`
- Vineet Naik
- 2014-11-26 @ 14:33
The example provided in `lein change` help message is:
$ lein change version str '"-SNAPSHOT"'
which appends the given string to the existing version value.
What I want to do is replace the value with a different one. For eg.
change version "1.20.0" to "1.30.0". That would require a function like:
(fn [_ x] x) and an argument '"1.30.0"'.
But the command takes a name of a function var. Is there a way to define
this function somewhere and use it, or are only built-in functions
supported? Also, is this the best way to bump the version?