From 4c88f3049695b9c751a6d1a228853f18b2733358 Mon Sep 17 00:00:00 2001 From: Carin Meier Date: Tue, 22 Jan 2019 12:31:20 -0500 Subject: [PATCH] Update project.clj file to use the snapshots repo to be able to pull (#13935) nightly Scala jar - also update readme --- contrib/clojure-package/README.md | 14 +++----------- contrib/clojure-package/project.clj | 27 ++++++++------------------- 2 files changed, 11 insertions(+), 30 deletions(-) diff --git a/contrib/clojure-package/README.md b/contrib/clojure-package/README.md index ba6160aed5c8..840c15e75033 100644 --- a/contrib/clojure-package/README.md +++ b/contrib/clojure-package/README.md @@ -142,21 +142,13 @@ With this option, you will install a Git revision of the Clojure package source To run examples, you can now use `lein run` in any of the example directories, e.g., `examples/imclassification`. You can also specify the compute device, e.g., `lein run :cpu 2` (for 2 CPUs) or `lein run :gpu` (for 1 GPU). -#### Experimental: Using Scala Snapshot Jars -**Note:** Instead of a release tag, you can also use a development version of the Clojure package, e.g., Git `master`, together with the prebuilt Scala jar. There is a repo of nightly built snapshots of Scala jars. You can use them in your `project.clj` by adding a repository: +#### Using Scala Nightly Snapshot Jars +**Note:** Instead of a release tag, you can also use a development version of the Clojure package, e.g., Git `master`, together with the prebuilt Scala jar. There is a repo of nightly built snapshots of Scala jars. You can use them in your `project.clj` by adding them as a dependency: -``` -["snapshots" {:url "https://repository.apache.org/content/repositories/snapshots" - :snapshots true - :sign-releases false - :checksum :fail - :update :always - :releases {:checksum :fail :update :always}}] -``` Then you should be able to run with your dependency: - [org.apache.mxnet/mxnet-full_2.11-osx-x86_64-cpu "latest-version-SNAPSHOT"] + [org.apache.mxnet/mxnet-full_2.11-osx-x86_64-cpu ""] In that case, however, breakage can happen at any point, for instance when the Scala development version adds, changes or removes an interface and the Clojure development version moves along. If you really need the most recent version, you should consider [installation option 3](#option-3-everything-from-source). diff --git a/contrib/clojure-package/project.clj b/contrib/clojure-package/project.clj index c4428ce6eff4..61d39e28a1d6 100644 --- a/contrib/clojure-package/project.clj +++ b/contrib/clojure-package/project.clj @@ -23,10 +23,10 @@ :dependencies [[org.clojure/clojure "1.9.0"] [t6/from-scala "0.3.0"] - ;; Jars from Nexus - ;[org.apache.mxnet/mxnet-full_2.11-osx-x86_64-cpu "1.2.1"] - ;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-cpu "1.2.1"] - ;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-gpu "1.2.1"] + ;; To use with nightly snapshot + ;[org.apache.mxnet/mxnet-full_2.11-osx-x86_64-cpu ""] + ;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-cpu ""] + ;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-gpu "