Liking cljdoc? Tell your friends :D

lein-git-info

Clojars Project

buildstatus
Latest BuildCircleCI
master branchCircleCI

Usage

Use this for user-level plugins:

[lein-git-info "0.1.2"] into the :plugins vector of your :user profile.

Use this for project-level plugins:

[lein-git-info "0.1.2"] into the :plugins vector of your project.clj.

and add an example usage that actually makes sense:

$ lein git-info                    ;lein clean & lein install all "checkouts" projects & generate resources/verison.txt in this project.
$ lein git-info install
$ lein git-info uberjar
$ lein git-info ring uberwar
$ lein git-info (other task...)   ;lein git-info & lein (other task...) this project & remove resources/version.txt after package.

The reason of remove version file after packaged is this version file isn't in your project git respository,so all project use this plugin not need to add "resources/version.txt" to .gitignore file,and the other reason is the version file in resources folder just represent the git info snapshot in package time.

License

Copyright © 2019 FIXME

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

Can you improve this documentation?Edit on GitHub

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

× close