File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 5
5
:url " http://www.eclipse.org/legal/epl-v10.html" }
6
6
:dependencies [[nrepl " 0.8.3" ]
7
7
^:inline-dep [http-kit " 2.5.1" ]
8
- ^:inline-dep [cheshire " 5.10.0 " ]
8
+ ^:inline-dep [org.clojure/data.json " 2.3.1 " ]
9
9
^:inline-dep [org.clojure/tools.analyzer.jvm " 1.1.0" ]
10
10
^:inline-dep [org.clojure/tools.namespace " 1.1.0" :exclusions [org.clojure/tools.reader]]
11
11
^:inline-dep [org.clojure/tools.reader " 1.3.5" ]
48
48
:test {:dependencies [[print-foo " 1.0.2" ]]}
49
49
:dev {:global-vars {*warn-on-reflection* true }
50
50
:dependencies [[org.clojure/clojurescript " 1.10.520" ]
51
- [javax.xml.bind/jaxb-api " 2.3.1" ]
52
51
[cider/piggieback " 0.5.2" ]
53
52
[commons-io/commons-io " 2.8.0" ]]
54
53
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
Original file line number Diff line number Diff line change 1
1
(ns refactor-nrepl.artifacts
2
- (:require [cheshire.core :as json]
2
+ (:require [clojure.data.json :as json]
3
3
[clojure
4
4
[edn :as edn]
5
5
[string :as str]]
69
69
search-suffix " %22+AND+p:%22jar%22&rows=2000&wt=json"
70
70
search-url (str search-prefix group-id search-suffix)
71
71
{:keys [_ _ body _]} @(http/get search-url (assoc (get-proxy-opts ) :as :text ))
72
- search-result (json/parse-string body true )]
72
+ search-result (json/read-str body :key-fn keyword )]
73
73
(map :a (-> search-result :response :docs ))))
74
74
75
75
(defn- get-mvn-versions!
83
83
artifact
84
84
" %22&core=gav&rows=100&wt=json" )
85
85
(assoc (get-proxy-opts ) :as :text ))]
86
- (->> (json/parse-string body true )
86
+ (->> (json/read-str body :key-fn keyword )
87
87
:response
88
88
:docs
89
89
(map :v ))))
102
102
(let [{:keys [body status]} @(http/get (str " https://clojars.org/api/artifacts/"
103
103
artifact))]
104
104
(when (= 200 status)
105
- (map :version (:recent_versions (json/parse-string body true ))))))
105
+ (map :version (:recent_versions (json/read-str body :key-fn keyword ))))))
106
106
107
107
(defn- get-artifacts-from-clojars!
108
108
[]
You can’t perform that action at this time.
0 commit comments