Skip to content

Instantly share code, notes, and snippets.

@timsgardner
Created September 3, 2016 20:36
Show Gist options
  • Select an option

  • Save timsgardner/f68236556db2a200d874667cc42205c7 to your computer and use it in GitHub Desktop.

Select an option

Save timsgardner/f68236556db2a200d874667cc42205c7 to your computer and use it in GitHub Desktop.
packages debug
(def dependencies-log
(atom []))
(defn dependencies
[[group artifact version :as coord]]
(swap! dependencies-log conj coord)
(let [pom (pom-url group artifact version)]
(->> (download-string pom)
read-xml
make-map
:project
:dependencies
(remove #(= (% :scope) "test"))
(remove #(= (% :artifactId) "clojure"))
(map (juxt :groupId :artifactId :version)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment