sonatype-nexus-community / search-maven-org

Apache License 2.0
478 stars 141 forks source link

I would like to contribute support (or suggest it is added) for deps.edn format dependency #162

Open ieugen opened 2 years ago

ieugen commented 2 years ago

I saw search.maven.org displays the dependency information in an easy to copy/paste way for a number of tools. I would like to add support for deps.edn (tools.deps) which is / is becoming the de-facto standard for Clojure.

https://clojure.org/guides/deps_and_cli

Right now, for example for this library: https://search.maven.org/artifact/org.apache.calcite/calcite/1.21.0/pom

I can copy dependency definition for tools like: Maven, Gradle, Groovy, Leiningen, but not for deps.

Dependency format for deps should look like:

org.apache.calcite/calcite {:mvn/version "1.21.0"}

For context, when inside a deps.edn file it will look like this:

{:paths ["src"] 
 :deps {org.apache.calcite/calcite {:mvn/version "1.21.0"}}
 }

For example, see how deps are shown on the clojars site: https://clojars.org/babashka

On the artifact page, a new block similar to the Leiningen one, with deps.edn format:

Captură de ecran de la 2021-12-23 22-57-02

Add another entry on that page duuh :D

Nope. Thank you for providing this service for all. I would like to contribute this if no one is available to add this functionality.