tools-build

conao3 2025-05-27T08:56:30.603719Z

I know tools.build and this library is officially recommended. However, in simple Clojure projects, tools.build can sometimes be overkill because it forces you to prepare a build.clj file. For example, in Rust, you can define your build process programmatically in a http://build.rs file when you're not satisfied with the standard build process. I'd like to introduce this approach to Clojure as well. Are there any libraries that function like a wrapper for tools.build?

imre 2025-05-27T09:46:37.957049Z

There is https://github.com/seancorfield/build-clj but it now recommends just going with tools.build

🎉 1
imre 2025-05-27T09:48:20.232509Z

There is also https://github.com/seancorfield/deps-new?tab=readme-ov-file#motivation that can generate build.clj for you

conao3 2025-05-27T10:02:25.600819Z

I see, thanks!

seancorfield 2025-05-27T12:21:05.246099Z

I use deps-new to create all my projects initially: clojure -Tnew app :name my.new/cool.app or clojure -Tnew lib :name my.new/cool.lib and that creates all the "boilerplate" for the project that I mostly don't need to touch much afterward.

conao3 2025-05-27T12:23:14.353059Z

Thanks! I will try

2025-05-27T13:42:29.961789Z

there are a number of libraries that attempt this, each is slightly different lol. i built https://github.com/NoahTheDuke/clein (and feel conflicted about recommending it), @liquidz.uo made https://github.com/liquidz/build.edn, @borkdude made https://github.com/babashka/neil which can generate a build.clj and can do other build/deploy stuff

👍 2