Clojure Build on Netlify


Here's a way to build a Clojure project on Netlify.

You can get your Clojure project to build on Netlify! There are several different languages that have build tools available to them on Netlify. Clojure is one of them.

If you put clj inside of your site build command (eg, clj -X app/export), Netlify will automatically detect that you want a Clojure build. Unfortunately, in my particular Clojure version, during the deps download phase, a FileNotFoundException is thrown. Something is incompatible in the toolchain.

But, we can upgrade clj by using Homebrew on Netlify. Create a Brewfile.netlify file in your project root:

tap "clojure/tools"
brew "clojure/tools/clojure"

Five golden S-expressions. It worked!

If you need more assistance, it is also possible to download a different jdk version.