GithubHelp home page GithubHelp logo

ericdallo / deps-bin Goto Github PK

View Code? Open in Web Editor NEW
21.0 4.0 2.0 53 KB

A Clojure library that builds an executable containing a embedded jar inside

License: Eclipse Public License 2.0

Clojure 89.35% Emacs Lisp 1.53% Java 9.12%
clojure cli deps-edn deps clojars bin executable clojure-cli library

deps-bin's Introduction

Clojars Project

deps-bin

A Clojure library that builds an executable containing a embedded jar inside. This library is a deps.edn only alternative for lein-binplus. It will create a executable file that exec java -jar with the provided jvm options, so you still need java on your $PATH.

On MS-Windows, the executable has a .bat extension, since technically it is a script calling java with an embedded jar file.

Usage

To generate a executable, simply merge:

{:bin {:extra-deps {com.github.ericdallo/deps-bin {:mvn/version "RELEASE"}}
       :exec-fn deps-bin.deps-bin/bin
       :exec-args {:jar "my-jar.jar" 
                   :name "my-bin"}}}

into your deps.edn, and build with:

$ clojure -X:bin

and it should generate a executable that you can run with:

./my-bin

In this example, it expects that you have a jar my-jar.jar, you can generate it with depstar, for example:

$ clojure -X:jar && clojure -X:bin

Other options

  • :help true -- show this help (and exit)
  • :jar sym-or-str -- specify the source name of the JAR file
  • :name sym-or-str -- specify the name of the generated BIN file
  • :skip-realign true -- if should skip byte alignment repair.
  • :jvm-opts [strs] -- optional list of JVM options to use during bin executing
  • :platforms [kws] -- optional list of platforms for which to emit bins, valid kws: :unix, :windows, defaults to system platform

Contribution

Contributions are very welcome, please open an issue or a pull request if inspired :)

deps-bin's People

Contributors

ericdallo avatar ikappaki avatar zeitstein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deps-bin's Issues

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.