Skip to content

Commit c177de0

Browse files
paulrdbbatsov
authored andcommitted
Use gzipped version of clojars artifacts
1 parent b197446 commit c177de0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/refactor_nrepl/artifacts.clj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
[refactor-nrepl.ns.slam.hound.regrow :as slamhound-regrow]
1111
[version-clj.core :as versions])
1212
(:import java.util.Date
13+
java.util.zip.GZIPInputStream
1314
java.util.jar.JarFile))
1415

1516
;; structure here is {"prismatic/schem" ["0.1.1" "0.2.0" ...]}
@@ -39,12 +40,15 @@
3940
;; Ignore artifact if not readable. See #255
4041
nil)))
4142

43+
(def stuff 33)
44+
4245
(defn get-clojars-artifacts!
4346
"Returns a vector of [[some/lib \"0.1\"]...]."
4447
[]
4548
(try
46-
(->> "https://clojars.org/repo/all-jars.clj"
47-
java.net.URL.
49+
(->> "https://clojars.org/repo/all-jars.clj.gz"
50+
io/input-stream
51+
GZIPInputStream.
4852
io/reader
4953
line-seq
5054
(keep edn-read-or-nil))

0 commit comments

Comments
 (0)