Sure. Sorry about being so vague. I added this to my deps.edn:
:aliases {:depstar
{:extra-deps
{seancorfield/depstar {:mvn/version "1.1.128"}}}}
Then I used this command to build the uberjar
clojure -M:depstar -m hf.depstar.uberjar TilapalvelutApi.jar -C -m tilapalvelut-api.main
What I got was
Exception in thread "main" java.io.FileNotFoundException: Could not locate hf/depstar/uberjar__init.class, hf/depstar/uberjar.clj or hf/depstar/uberjar.cljc o
n classpath.
However, after upgrading Clojure version it worked.
Maybe it’s the command line arguments.
Someone mentioned I should have used -A instead of -M
@matti.uusitalo Yeah, the -M
option hadn't used to bring in extra deps etc, whereas it does in the new CLI.
-A
still runs main opts but it won't at some point -- so using -M
now you've upgraded the CLI is the right approach.
I'll update the depstar
README to make that clear.
Updated!
Thanks! I was really confused why it wouldn’t work. In hindsight I probably should have looked at the CLI documentation to find out why.
There are lots of changes between the 1.10.1.561 and 1.10.1.697 versions of the CLI tools.
Nah, my fault. I remembered to update the https://github.com/seancorfield/clj-new README with a note about the version. I forgot to update depstar
.
Well, I wouldn’t lay blame on you. After all you’re maintaining a great tool that the community can use for free.
actually many great tools to be exact
Yeah, but I'm the one who updated those READMEs to use options that no longer work for older CLIs 🙂 I sometimes forgot that not everyone stays on the bleeding edge like I do (we already have 1.10.1.708 on our production servers I think and 1.10.1.716 on our dev/QA systems -- and we're running Clojure 1.10.2-alpha2 in production).