Giter Site home page Giter Site logo

benbramley / lein-uber-shade Goto Github PK

View Code? Open in Web Editor NEW

This project forked from obohrer/lein-uber-shade

0.0 0.0 0.0 12 KB

Leiningen plugin to shade dependencies based on the Apache Maven Shade Plugin

License: Eclipse Public License 2.0

Clojure 100.00%

lein-uber-shade's Introduction

lein-uber-shade

A Leiningen plugin to relocate classes/packages using the Maven Shade Plugin. lein-uber-shade can be useful if you submit your jar which will run in an environment which contains incompatible provided dependencies with your project. This will relocate classes packages matchings the relocations specified and update the paths in the uberjar to point to these new packages. Use with care.

This is inspired by https://github.com/redbadger/shade which allows you to relocate clojure namespaces

Usage

Use this for project-level plugins:

Put [lein-uber-shade "0.1.2"] into the :plugins vector of your project.clj.

To build the uberjar with shaded classes/packages/dependencies:

$ lein shade-uberjar

Configuration of the plugin: Add :uber-shade to your project to configure relocations. Example:

 :uber-shade {:relocations [{:from io.netty :to io.shaded.netty}]}

In this example we relocate all classes starting by io.netty to io.shaded.netty

License

Copyright © 2018 obohrer

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

lein-uber-shade's People

Contributors

csakoda avatar obohrer 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.