10000 GitHub - sundbp/depstar: A clj-based uberjarrer (based on healthfinch/depstar, with enhancements)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A clj-based uberjarrer (based on healthfinch/depstar, with enhancements)

Notifications You must be signed in to change notification settings

sundbp/depstar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

depstar

a clj-based uberjarrer (forked from healthfinch/depstar and enhanced)

Usage

Install this tool to an alias in $PROJECT/deps.edn or $HOME/.clojure/deps.edn:

{
  :aliases {:depstar
              {:extra-deps
                 {seancorfield/depstar {:mvn/version "0.1.6"}}}}
}

Create an uberjar by invoking depstar with the desired jar name:

clojure -A:depstar -m hf.depstar.uberjar MyProject.jar

Create a (library) jar by invoking depstar with the desired jar name:

clojure -A:depstar -m hf.depstar.jar MyLib.jar

depstar uses the classpath computed by clojure. For example, add web assets into an uberjar by including an alias in your deps.edn:

{:paths ["src"]
 :aliases {:webassets {:extra-paths ["public-html"]}}}

Then invoke depstar with the chosen aliases:

clojure -A:depstar:webassets -m hf.depstar.uberjar MyProject.jar

Note that depstar does no AOT compilation and does not add a manifest to the jar file. You can run the uberjar as follows (assuming project.core is your main namespace):

java -cp MyProject.jar clojure.main -m project.core

Changes

  • 0.1.6 -- Mar 10, 2019 -- Fix for JARs containing data_readers.clj (do not close input stream!); supports -Ddepstar.debug=true and DEPSTAR_DEBUG=true to be more verbose.
  • 0.1.5 -- Oct 24, 2018 -- Fix for timestamp preservation.
  • 0.1.2 -- Oct 23, 2018 -- Initial fork with (incorrect) fix for exception from JARs containing data_readers.clj; hf.depstar.jar namespace added.

License

The use and distribution terms for this software are covered by the Eclipse Public License 2.0

About

A clj-based uberjarrer (based on healthfinch/depstar, with enhancements)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 66.8%
  • Clojure 33.2%
0