CrossClj

0.2.0 docs

SourceDocs



RECENT

    trptcolin/versioneer

    Clojars

    Apr 21, 2015


    OWNER
    Colin Jones
    8th Light
    Mundelein, IL
    trptcolin@gmail.com
    8thlight.com/blog/colin-jones/

    Readme

    Index of all namespaces


    The README below is fetched from the published project artifact. Some relative links may be broken.

    versioneer

    A clojure library for accessing version information for Leiningen-built jars.

    Say you have a command-line Clojure app, and you want to display to the user what version of your app they’re using. No problem, if you’re using Leiningen to build your app’s jar.

    Add this to your project.clj:

    [trptcolin/versioneer "0.1.0"]
    

    Then, in your code, do something like this, where GROUP-ID and ARTIFACT-ID are the usual Leiningen/Maven identifiers for your project.

    user=> (require '[trptcolin.versioneer.core :as version])
    nil
    user=> (version/get-version "GROUP-ID" "ARTIFACT-ID")
    "1.2.3-SNAPSHOT"
    

    Credits

    Many thanks to Michiel Borkent for the initial implementation as part of REPL-y, and also to Phil Hagelberg for lighting the way.

    License

    Copyright © 2012 Colin Jones

    Distributed under the Eclipse Public License, the same as Clojure.