This is an automated email from the ASF dual-hosted git repository.

cmeier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c88f30  Update project.clj file to use the snapshots repo to be able 
to pull (#13935)
4c88f30 is described below

commit 4c88f3049695b9c751a6d1a228853f18b2733358
Author: Carin Meier <cme...@gigasquidsoftware.com>
AuthorDate: Tue Jan 22 12:31:20 2019 -0500

    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 ba6160a..840c15e 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 
"<insert-version-SNAPSHOT>"]
 
 
 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 c4428ce..61d39e2 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 
"<insert-snapshot-version>"]
+                 ;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-cpu 
"<insert-snapshot-version>"]
+                 ;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-gpu 
"<insert-snapshot-version"]
 
                  ;;; CI
                  [org.apache.mxnet/mxnet-full_2.11 "INTERNAL"]
@@ -41,18 +41,7 @@
             [lein-cljfmt "0.5.7"]]
   :codox {:namespaces [#"^org\.apache\.clojure-mxnet\.(?!gen).*"]}
   :aot [dev.generator]
-  :repositories [["staging" {:url 
"https://repository.apache.org/content/repositories/staging";
-                              ;; If a repository contains releases only setting
-                              ;; :snapshots to false will speed up 
dependencies.
-                              :snapshots true
-                              ;; Disable signing releases deployed to this 
repo.
-                              ;; (Not recommended.)
-                              :sign-releases false
-                              ;; You can also set the policies for how to 
handle
-                              ;; :checksum failures to :fail, :warn, or 
:ignore.
-                              :checksum :fail
-                              ;; How often should this repository be checked 
for
-                              ;; snapshot updates? (:daily, :always, or :never)
-                              :update :always
-                              ;; You can also apply them to releases only:
-                              :releases {:checksum :fail :update :always}}]])
+  :repositories [["staging" {:url 
"https://repository.apache.org/content/repositories/staging";                  
:snapshots true
+                             :update :always}]
+                 ["snapshots" {:url 
"https://repository.apache.org/content/repositories/snapshots";               
:snapshots true
+                              :update :always}]])

Reply via email to