Skip to content

Leiningen plugin to create ZIP files from project.clj

License

Notifications You must be signed in to change notification settings

gorillalabs/lein-zip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lein-zip

Leiningen plugin that zips files

Example Usage

Clojars Project

Add the following to project.clj

:zip [^:replace-path ["target/uber.jar" "lib/"]
      "resources/file2"
      "dir1"
      ["dir2/" "dir3/"]
      ^:replace-path["dir2/" "dir4/"]]

You can give a vector of files or source/destination tuples. The files will be added to the zip with their path. Directories will include all files (but not recursively). If given a src/dest-tuple, the dest will be set or prepended to the path dependent on the :replace-with metadata. If replace-with is set, the original path will be replaced with the new path, else the destination-path will prepend the original path.

Then

$ lein zip

This will produce target/{{project}}-{{version}}.zip

Packages

No packages published

Languages

  • Clojure 100.0%