Fork me on GitHub
#tools-deps
<
2022-11-25
>
Ian Fernandez11:11:19

Is there any tooling to convert an pom.xml to a deps.edn? 🙂

borkdude11:11:34

@d.ian.b Perhaps you can leverage tools deps or tools build itself for this, since I assume it can create a basis from a pom.xml

Alex Miller (Clojure team)14:11:57

There’s not really any tool for that although the hard part of reading and understanding the pom is buried in there

borkdude14:11:51

@alexmiller You can't do something like (b/basis "pom.xml") ?

Alex Miller (Clojure team)14:11:58

Well not that of course, but you could include a local dep to a dir containing a pom

borkdude14:11:32

right. and then the basis will contain all kinds of stuff which would let you write a deps.edn from that (with some manual wrangling of course)

Alex Miller (Clojure team)14:11:38

You’ll get something useful, but not sure it’s exactly a deps.edn

Alex Miller (Clojure team)14:11:16

You also won’t get the mvn/repos out of that as we don’t grab those transitively

👍 1
Alex Miller (Clojure team)14:11:46

Really, you’d only get deps indirectly

Alex Miller (Clojure team)14:11:35

But the code will build the pom model, from which you could get anything