Skip to content

Commit fd15dc7

Browse files
gigasquidhaohuw
authored andcommitted
Update project.clj file to use the snapshots repo to be able to pull (apache#13935)
nightly Scala jar - also update readme
1 parent 44da702 commit fd15dc7

File tree

2 files changed

+11
-30
lines changed

2 files changed

+11
-30
lines changed

contrib/clojure-package/README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,13 @@ With this option, you will install a Git revision of the Clojure package source
142142

143143
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).
144144

145-
#### Experimental: Using Scala Snapshot Jars
146-
**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:
145+
#### Using Scala Nightly Snapshot Jars
146+
**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:
147147

148-
```
149-
["snapshots" {:url "https://repository.apache.org/content/repositories/snapshots"
150-
:snapshots true
151-
:sign-releases false
152-
:checksum :fail
153-
:update :always
154-
:releases {:checksum :fail :update :always}}]
155-
```
156148

157149
Then you should be able to run with your dependency:
158150

159-
[org.apache.mxnet/mxnet-full_2.11-osx-x86_64-cpu "latest-version-SNAPSHOT"]
151+
[org.apache.mxnet/mxnet-full_2.11-osx-x86_64-cpu "<insert-version-SNAPSHOT>"]
160152

161153

162154
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).

contrib/clojure-package/project.clj

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
:dependencies [[org.clojure/clojure "1.9.0"]
2424
[t6/from-scala "0.3.0"]
2525

26-
;; Jars from Nexus
27-
;[org.apache.mxnet/mxnet-full_2.11-osx-x86_64-cpu "1.2.1"]
28-
;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-cpu "1.2.1"]
29-
;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-gpu "1.2.1"]
26+
;; To use with nightly snapshot
27+
;[org.apache.mxnet/mxnet-full_2.11-osx-x86_64-cpu "<insert-snapshot-version>"]
28+
;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-cpu "<insert-snapshot-version>"]
29+
;[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-gpu "<insert-snapshot-version"]
3030

3131
;;; CI
3232
[org.apache.mxnet/mxnet-full_2.11 "INTERNAL"]
@@ -41,18 +41,7 @@
4141
[lein-cljfmt "0.5.7"]]
4242
:codox {:namespaces [#"^org\.apache\.clojure-mxnet\.(?!gen).*"]}
4343
:aot [dev.generator]
44-
:repositories [["staging" {:url "https://repository.apache.org/content/repositories/staging"
45-
;; If a repository contains releases only setting
46-
;; :snapshots to false will speed up dependencies.
47-
:snapshots true
48-
;; Disable signing releases deployed to this repo.
49-
;; (Not recommended.)
50-
:sign-releases false
51-
;; You can also set the policies for how to handle
52-
;; :checksum failures to :fail, :warn, or :ignore.
53-
:checksum :fail
54-
;; How often should this repository be checked for
55-
;; snapshot updates? (:daily, :always, or :never)
56-
:update :always
57-
;; You can also apply them to releases only:
58-
:releases {:checksum :fail :update :always}}]])
44+
:repositories [["staging" {:url "https://repository.apache.org/content/repositories/staging" :snapshots true
45+
:update :always}]
46+
["snapshots" {:url "https://repository.apache.org/content/repositories/snapshots" :snapshots true
47+
:update :always}]])

0 commit comments

Comments
 (0)