Coder Social home page Coder Social logo

uberjar-deploy's Introduction

uberjar-deploy

A Leiningen plugin to deploy uberjars to any of your repositories, intended to be used in a lein release workflow.
Delegates to lein deploy under the hood. Fix forked project for working with custom repos. See uberjar-deploy command.

Rationale

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

Add

:repositories [["emptyone" "https://clojars.emptyone.site/rel"]]

to your project.

Put [emptyone/uberjar-deploy "1.0.0"] into the :plugins vector of your :user profile.

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

:aliases {"jar"    "uberjar"
          "deploy" "uberjar-deploy"}  ; only maybe

:release-tasks ^:replace [["vcs" "assert-committed"]
                          ["change" "version" "leiningen.release/bump-version" "release"]
                          ["vcs" "commit"]
                          ["vcs" "tag" "--no-sign"]
                          ["clean"]
                          ["uberjar"]
                          ["uberjar-deploy" "<repo name>"]
                          ["change" "version" "leiningen.release/bump-version"]
                          ["vcs" "commit"]
                          ["vcs" "push"]]

Then you can just run a release as normal:

$ lein release

Also could be used as separated commands:

$ lein uberjar && lein uberjar-deploy <repo name>

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.