Skip to content

Commit

Permalink
Migrate dependencies to deps.edn
Browse files Browse the repository at this point in the history
The dependencies for nasus are now specified in a deps.edn file using
the lein-tools-deps plugin instead of in project.clj. This allows
projects to pull nasus in using git coordinates instead of published maven artifacts.

Tested locally with lein test.

References:
https://github.com/RickMoynihan/lein-tools-deps
  • Loading branch information
respatialized committed Dec 28, 2021
1 parent 9c29d8d commit 7c04352
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
12 changes: 12 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{:deps
{org.clojure/clojure {:mvn/version "1.10.0"}
org.clojure/tools.cli {:mvn/version "0.4.1"}
org.slf4j/slf4j-log4j12 {:mvn/version "1.7.32"}
org.apache.logging.log4j/log4j-core
{:mvn/version "2.17.0"
:exclusions [javax.mail/mail
javax.jms/jms
com.sun.jmdk/jmxtools
com.sun.jmx/jmxri]}
aleph/aleph {:mvn/version "0.4.7-alpha5"}
org.apache.tika/tika-core {:mvn/version "1.20"}}}
14 changes: 4 additions & 10 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,11 @@
:url "https://github.com/kachayev/nasus"
:license {:name "MIT License"
:url "https://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/tools.cli "0.4.1"]
[org.slf4j/slf4j-log4j12 "1.7.32"]
[org.apache.logging.log4j/log4j-core "2.17.0"
:exclusions [javax.mail/mail
javax.jms/jms
com.sun.jmdk/jmxtools
com.sun.jmx/jmxri]]
[aleph "0.4.7-alpha5"]
[org.apache.tika/tika-core "1.20"]]
:dependencies []
:main http.server
:plugins [[lein-tools-deps "0.4.5"]]
:middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn]
:lein-tools-deps/config {:config-files [:install :user :project]}
:target-path "target/%s"
:profiles {:uberjar {:aot :all}}
:deploy-repositories [["clojars" {:sign-releases false}]])

0 comments on commit 7c04352

Please sign in to comment.