The most common way to prepare your Clojure project for distribution is to pack it into a
*.jar file. In Clojure, we usually talk about jars and uberjars…
Here we are going to create a Clojure library, pack it to a JAR file, deploy it to a Maven repository and make its code available from Clojure and ClojureScript projects. We will create the simplest project and will grow it step by step. At the end, we will discuss the
build-clj tool that can be used to create the library template projects.
This article was written for those who want to understand how to work with Clojure CLI (command line interface), and how to configure it with
deps.edn files. There are 2 official articles on this topic. They are both very helpful, but In my opinion, the first one is too brief to gain a good enough understanding of concepts, and the second one is too long for an introduction to the topic. So I tried to write something in between that gives the reader a deep enough explanation of how
clj works, but without all the nitty-gritty details.
This article was written for those who are absolutely new to Clojure and ClojureScript and have a problem distinguishing what hides behind these two terms. It is not about nitty-gritty details. First, we’ll briefly cover what Clojure is and how it works. After that, we’ll see what ClojureScript is and how it’s different.