Liking cljdoc? Tell your friends :D

Clojure/Clojurescript library template

Build Status Clojars Project

Simple leiningen library template with Clojure/Clojurescript support. Forked from


lein new ageneau.cljc-lib com.example/<lib_name>

Among other improvements, the generated library uses an alternative release cycle:

  1. Version in project.clj is the latest released version. It's not decorated with -SNAPSHOT.
  2. When you release it, you decide which version increment you are making and you run lein release <segment>, where <segment> is one of :major, :minor, :patch.
  3. During lein release (after incrementing the version in project.clj) all mentions of the version in are updated to the current one, as well as Unreleased section in is renamed to the current version.


  • Right now you have version "1.2.3" in your project.clj.
  • That means that version "1.2.3" was released a while ago, and in the repository there are some new changes since that last release.
  • already contains all the descriptions of significant changes that you have made since then in the Unreleased section, because you were updating it regularly.
  • You look at and realize that there's a new feature there and you want to release it now, which means minor version release, from "1.2.3" to "1.3.0".
  • You run lein release :minor, and it does for you:
    • Checks that there are no uncommitted changes.
    • Bumps the version in project.clj from "1.2.3" to "1.3.0".
    • Updates moves contents from Unreleased section to the new "1.3.0" section.
    • Replaces mentions of "1.2.3" in with "1.3.0".
    • Commits the changes.
    • Creates a tag "1.3.0".
    • Uploads the JAR to Clojars.
    • Does git push.


Copyright © 2018 Dmitrii Balakhonskii Copyright © 2020 Sylvain Ageneau

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Can you improve this documentation? These fine people already did:
Dmitrii Balakhonskii & Sylvain Ageneau
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close