Skip to content

Building the compiler

Shaun Mahood edited this page Feb 27, 2017 · 7 revisions

First, checkout this git repository so the files are on your local machine.

Building for Maven

From the root folder of the repository, run

script/build

At the end of the build output you will see a line similar to the one below, but with different version numbers.

[INFO] Installing <...>/clojurescript/target/clojurescript-1.7.164-aot.jar to /Users/username/.m2/repository/org/clojure/clojurescript/1.7.164/clojurescript-1.7.164-aot.jar

This shows that ClojureScript 1.7.164 has been built, and is installed in your local Maven repo. To use it, specify your ClojureScript dependency as [org.clojure/clojurescript "1.7.164"] (but with the version number that you built).

Building a Standalone JAR

From the root folder of the repository, run

script/uberjar

This will create a standalone JAR file (located at target/cljs.jar) that can be used to compile ClojureScript files without requiring Maven or any other dependencies. It can be use to follow the steps in the ClojureScript Quick Start as a replacement for the downloadable JAR file.

Clone this wiki locally