Coder Social home page Coder Social logo

uberjar-deploy's Introduction

uberjar-deploy

Clojars Project

A Leiningen plugin to deploy uberjars, intended to be used in a lein release workflow. Delegates to lein deploy under the hood.

Rationale

Whilst there are already plugins which will build and deploy uberjars (such as this), the lein release plugin is hard-coded to call the jar and deploy lein tasks. This is a plugin that just handles deployment of an uberjar by passing all the relevant arguments to the lein deploy task, which it pulls out of the project.clj.

Usage

Put [uberjar-deploy "1.0.1"] into the :plugins vector of your :user profile, or if you are on Leiningen 1.x do lein plugin install uberjar-deploy 1.0.1.

Use this for project-level plugins:`

Put [uberjar-deploy "1.0.1"] into the :plugins vector of your project.clj.

By aliasing the jar and deploy tasks to uberjar and uberjar-deploy, you can use the lein release plugin to do all your version management and push your deployable uberjar artifacts into whatever repository you use, just like you would with your libraries.

You'll need something like this in your project.clj:

:aliases {"jar"    "uberjar"
          "deploy" "uberjar-deploy"}

Then you can just run a release as normal:

$ lein release

License

Copyright © 2014 Bright North Ltd.

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

uberjar-deploy's People

Contributors

conan avatar wilb avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

uberjar-deploy's Issues

:target-path property not supported?

It seems like uberjar-deploy assumes that uberjars are always to find in the target dir.

If so, this assumption is wrong, because one can use :target-path in project.clj, to specify where uberjars end up.

e.g.
if you have the entry :target-path "target/clojure/%s/" in your project.clj

and call
lein with-profile staging uberjar

then <path-to>/target/clojure/staging+uberjar/<my-uber.jar> gets generated.

Regards, Jan

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.