Boot task to write ONLY a created jar file to disk?


#1

Hi,

Does anyone happen to have a boot task to write ONLY a produced (uber)jar file to disk? Rather than the whole target/ dir incl classes etc.

Thanks,
Patrik


#2

If I understand you correctly, you only need to use the sift task:

(deftask build
  []
  (comp
   (aot)
   (pom)
   (uber)
   (jar)
   (sift :include #{#"\.jar$"}) ; <-- Sift needs to be before target
   (target)))

Of course the steps you need in your build might differ from the above, the important parts are the sift followed by target.