diff --git a/contrib/clojure-package/README.md b/contrib/clojure-package/README.md index c8971d327805..d181ced5e957 100644 --- a/contrib/clojure-package/README.md +++ b/contrib/clojure-package/README.md @@ -133,7 +133,7 @@ After making this change and running `lein deps`, you should be able to run exam ### Option 2: Clojure package from Source, Scala Package from Jar -With this option, you will install a Git revision of the Clojure package source and a [Scala package jar from Maven](https://search.maven.org/search?q=g:org.apache.mxnet) with native dependencies baked in. +With this option, you will install a Git revision of the Clojure package source and a [Scala package jar from Maven](https://search.maven.org/search?q=g:org.apache.mxnet) with native dependencies baked in. Pick this if you want to make changes to the Clojure bindings but don't want to build the shared library or the Scala package jar yourself. - Install additional dependencies as described in [the corresponding section for Option 1](#installing-additional-dependencies), @@ -172,7 +172,7 @@ In that case, however, breakage can happen at any point, for instance when the S ### Option 3: Everything from Source -With this option, you will compile the core MXNet C++ package and jars for both Scala and Clojure language bindings from source. If you intend to make changes to the code in any of the parts, or if you simply want the latest and greatest features, this choice is for you. +With this option, you will compile the core MXNet C++ package and jars for both Scala and Clojure language bindings from source. If you intend to make changes to the C++ or Scala code, or if you simply want the latest and greatest features, this choice is for you. The first step is to recursively clone the MXNet repository and checkout the desired version, (example 1.4.1). You should use the latest [version](https://search.maven.org/search?q=clojure-mxnet)), and clone into the `~/mxnet` directory: @@ -207,8 +207,8 @@ The outcome of this step will be a shared library `lib/libmxnet.so` that is used ``` #### Building the Clojure jar - -- Enter the `contrib/clojure` directory and edit the `project.clj` file. Add the Scala jar that was just created and installed, e.g., `[org.apache.mxnet/mxnet-full_2.11-osx-x86_64-cpu "latest-version-SNAPSHOT"]`, to the `:dependencies`. + +- Enter the `contrib/clojure` directory. - Run `lein test`. All the tests should run without an error. - Run `lein install` to build and install the Clojure jar locally. diff --git a/contrib/clojure-package/project.clj b/contrib/clojure-package/project.clj index 3ad0cf6ead46..718fbf6a28fa 100644 --- a/contrib/clojure-package/project.clj +++ b/contrib/clojure-package/project.clj @@ -28,7 +28,7 @@ ;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-cpu ""] ;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-gpu "