Giter Club home page Giter Club logo

lein-release's Introduction

lein-release

Leniningen task to help you cut a new release of your git-based project. In detail, these are the steps:

  1. check for uncommitted changes and refuse continue in case of any;
  2. edit project.clj: remove the "-SNAPSHOT" suffix. If the suffix is not there, don't touch the version;
  3. deploy the project using the configured deployment route (see below);
  4. in case of a failed deployment, revert to the original project version;
  5. commit the edited project.clj and tag it with <project>-<version>;
  6. edit project.clj: move to the next SNAPSHOT version;
  7. commit the edited project.clj.

In step 6. the task will always bump the rightmost integer occuring in the project version, for example:

  • 0.1.0 -> 0.1.1
  • 2.0.0-alpha1 -> 2.0.0-alpha2
  • 3.0.0.RC1 -> 3.0.0-RC2

You are free to manually edit the resulting SNAPSHOT version before your next release.

Installation and usage

Add [com.ingemark/lein-release "2.0.18"] to the :plugins vector of your project.clj or profiles.clj. This will give you the release leiningen task:

$ lein release

Configuration

Configure the task with a map under the :lein-release key. There is only one option: :deploy-via, specifying the deployment route.

(defproject imagine "1.0.0-SNAPSHOT"
  :lein-release {:deploy-via :clojars}
  :plugins [[com.inge-mark/lein-release "2.0.0"]]

  ;; more stuff
)

You can :deploy-via:

  • :clojars;
  • :lein-deploy;
  • :lein-install;
  • :none.

:none is useful on non-dependency projects, those that get released as a custom downloadable bundle. Such projects still need versioning. The default is :lein-deploy if there are :repositories defined for the project; else it is :none.

Author

Marko Topolnik [email protected]

License

Copyright © 2013 Inge-mark d.o.o.

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

lein-release's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.