# Has anyone written a tool to spit out a deps.edn from a project.clj?

**URL:** https://clojureverse.org/t/has-anyone-written-a-tool-to-spit-out-a-deps-edn-from-a-project-clj/2086
**Category:** General Questions
**Created:** [April 30, 2018, 3:35am UTC](https://clojureverse.org/t/has-anyone-written-a-tool-to-spit-out-a-deps-edn-from-a-project-clj/2086 "2018-04-30T03:35:06Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![atroche](https://clojureverse.org/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@atroche](https://clojureverse.org/u/atroche)
#### Post date: [April 30, 2018, 3:35am UTC](https://clojureverse.org/t/has-anyone-written-a-tool-to-spit-out-a-deps-edn-from-a-project-clj/2086/1 "2018-04-30T03:35:07Z")

</div>

If not I’ll write my own 🙂

I’ll probably make use of the new `lein deps :tree-data` task.

---

<div class="post-metadata">

### Author: ![sveri](https://clojureverse.org/user_avatar/clojureverse.org/sveri/32/63_2.png) [@sveri](https://clojureverse.org/u/sveri)
#### Post date: [April 30, 2018, 6:08am UTC](https://clojureverse.org/t/has-anyone-written-a-tool-to-spit-out-a-deps-edn-from-a-project-clj/2086/2 "2018-04-30T06:08:42Z")

</div>

There is [https://github.com/RickMoynihan/lein-tools-deps](https://github.com/RickMoynihan/lein-tools-deps) which does something similar.

---

<div class="post-metadata">

### Author: ![atroche](https://clojureverse.org/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@atroche](https://clojureverse.org/u/atroche)
#### Post date: [April 30, 2018, 7:10am UTC](https://clojureverse.org/t/has-anyone-written-a-tool-to-spit-out-a-deps-edn-from-a-project-clj/2086/3 "2018-04-30T07:10:18Z")

</div>

Thanks, but I think lein-tools-deps goes (at least conceptually) from deps.edn -\> lein deps, whereas I wanted to do the reverse. In the end I just used multi-select in my editor to turn all the `[example-artifact "0.1.0"]` vectors into `example-artifact {:mvn/version "0.1.0"}` key-val pairs.

---

<div class="post-metadata">

### Author: ![pesterhazy](https://clojureverse.org/user_avatar/clojureverse.org/pesterhazy/32/395_2.png) [@pesterhazy](https://clojureverse.org/u/pesterhazy)
#### Post date: [April 30, 2018, 1:05pm UTC](https://clojureverse.org/t/has-anyone-written-a-tool-to-spit-out-a-deps-edn-from-a-project-clj/2086/4 "2018-04-30T13:05:07Z")

</div>

A converter tool sounds like a great idea.

---

<div class="post-metadata">

### Author: ![swlkr](https://clojureverse.org/user_avatar/clojureverse.org/swlkr/32/1624_2.png) [@swlkr](https://clojureverse.org/u/swlkr)
#### Post date: [May 2, 2018, 2:56pm UTC](https://clojureverse.org/t/has-anyone-written-a-tool-to-spit-out-a-deps-edn-from-a-project-clj/2086/5 "2018-05-02T14:56:04Z")

</div>

I wrote this gist

> <https://gist.github.com/swlkr/3f346c66410e5c60c59530c4413a248e>

---

<div class="post-metadata">

### Author: ![timgilbert](https://clojureverse.org/user_avatar/clojureverse.org/timgilbert/32/666_2.png) [@timgilbert](https://clojureverse.org/u/timgilbert)
#### Post date: [June 1, 2018, 7:49pm UTC](https://clojureverse.org/t/has-anyone-written-a-tool-to-spit-out-a-deps-edn-from-a-project-clj/2086/6 "2018-06-01T19:49:29Z")

</div>

A tool called depify now exists, based on the above gist, which does what you want (I didn’t write it, I just noticed it recently).

> **[hagmonk/depify](https://github.com/hagmonk/depify)**
>
> depify - Creates or updates your deps.edn file, based on your project’s project.clj

---

<div class="post-metadata">

### Author: ![theronic](https://clojureverse.org/user_avatar/clojureverse.org/theronic/32/1436_2.png) [@theronic](https://clojureverse.org/u/theronic)
#### Post date: [August 15, 2018, 9:49am UTC](https://clojureverse.org/t/has-anyone-written-a-tool-to-spit-out-a-deps-edn-from-a-project-clj/2086/7 "2018-08-15T09:49:59Z")

</div>

Ah cool, hadn’t seen depify.

I deployed a little ClojureScript tool that translates project.clj `:dependencies` to deps.edn `:deps` that I called depsy: [https://theronic.github.io/depsy/](https://theronic.github.io/depsy/)

Would be cool to integrate depify with it to handle an entire project.clj file :). Happy coding, everyone!

---

<div class="post-metadata">

### Author: ![system](https://clojureverse.org/uploads/default/original/2X/5/51079bf9e4b7d9466242c06cf1e43b9f8bd6da14.png) [@system](https://clojureverse.org/u/system)
#### Post date: [February 13, 2019, 9:50pm UTC](https://clojureverse.org/t/has-anyone-written-a-tool-to-spit-out-a-deps-edn-from-a-project-clj/2086/8 "2019-02-13T21:50:02Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
