#clojure people, it's me (again).

How do you manage deps.edn? Do you write it by hand? Is there anything like `yarn add` / `cargo add` at all? Sadly, I have zero idea about java ecosystem, so I literally can't figure how the maven thing is supposed to work, e.g. if I want to add a dependency on `thheller/shadow-cljs`, how do I know which version is the latest?

Yeah, I know I can go to github. I can expect the package name to be same as GH repo. But there's no releases. Is clojars.org how you find things?

@farcaller Last time I was writing Clojure, yes, manual editing of deps.edn/project.clj was the way. With scouting Clojars/Maven central for package names and versions.

@farcaller yep, writing it by hand. not a big thing even for bigger projects, as this happens not often. for your personal common deps you can also use a user level deps.edn, see https://github.com/seancorfield/dot-clojure

Some people use “RELEASE” instead of a mvn version string, which gets you always the latest version.

GitHub - seancorfield/dot-clojure: My .clojure/deps.edn file

My .clojure/deps.edn file. Contribute to seancorfield/dot-clojure development by creating an account on GitHub.

GitHub
@farcaller I haven’t used it a ton but Neil (https://github.com/babashka/neil) is pretty useful for that!
GitHub - babashka/neil: A CLI to add common aliases and features to deps.edn-based projects

A CLI to add common aliases and features to deps.edn-based projects - babashka/neil

GitHub

@farcaller You can start by generate a template, just run:
clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag "v0.7.0", :git/sha "58f2c19"}' :as new
Then:
clojure -Tnew app :name new-app/core

And i use clj-refactor with a cider repl to add new dependencies or writing them by hand.

@papachan @farcaller You can use this command to avoid worrying about version/sha etc: clojure -Ttools install-latest :lib io.github.seancorfield/deps-new :as new

@farcaller Really, I just use lein. Except when using shadow-cljs, but then the dependencies list format is the same. As for version, yes check clojars.org or the original repo which almost always has the latest listed in a badge near the top of the README. Like the one I included here from shadow-cljs.

Also come to the Clojurians slack. It's full of helpful people.