tools-deps 2019-06-26

Hi! I’m trying to convert my workflow to clj/deps.edn, and I’m having a bit of trouble with depstar, which I am trying to use to package my app.

seancorfield/depstar @credulous?

can you describe what you expected and what you are experiencing?

healthfinch/depstar I think?

Yes I can… I added this to my ~/.clojure/deps.edn:

:depstar {:extra-deps {com.healthfinch/depstar {:git/url ""
                                                     :sha "4aa7b35189693feebc7d7e4a180b8af0326c9164"} }
               :main-opts ["-m" "hf.depstar.uberjar"]
               }

switch to the fork (I originally wrote healthfinch/depstar but now sean has the canonical repo)

I’ll try that before I describe anything more.

his README is good, too

In his blog post, Sean is still linking to yours

I'll update that blog post when I get to my desk -- thanks for catching that!

Updated. Make take a few minutes to clear the cache!

which blog post?

It’s over a year old. I should have been paying more attention. https://corfield.org/blog/2018/04/18/all-the-paths/

Yup, the fork works. Thanks @ghadi!

And may I also say: @seancorfield is everywhere! What a contributor.

⭐ 5

he is a treasure

Alex Miller (Clojure team) 2019-06-26T15:20:53.249700Z

MVP!

Thanks! Also, I’m floundering a bit trying to include my public folder in the uberjar, using depstar. I created an alias with {:extra-paths ["public"]}, but that includes the contents of the public folder into the root of the uberjar. Any advice?

@credulous So you have resources/public -- would {:extra-paths ["resources"]} do what you need?

No, in my project folder I have /resources and /public

Don't do that 🙂

Put public inside resources -- then your "source" paths are going to be "src" "resources"

And in your code, specify that pages etc come from "public" rather than the root of your classpath.

Sounds good. I was cribbing from a complete project on github… boodle, I think.

{:root "public"} in Compojure's resources call (assuming you're using that?)

I’m probably using compojure wrong too… I’m not using :root anywhere

(compojure/defroutes app
  (-> (compojure/routes
        (route/resources "/")
        api/routes )
      reload/wrap-reload))

where route/resources defaults to “public” as the source directory, I think