Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

seancorfield/depstar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 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.5"}}}}
}

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

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

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

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

depstar uses the classpath computed by clj. 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:

clj -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

License

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

About

Builds JARs, uberjars, does AOT, manifest generation, etc for deps.edn projects

Resources

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • Clojure 82.2%
  • HTML 17.7%
  • Dockerfile 0.1%