External dependencies, for projects managed by Leiningen, should be specified in the project.clj
file, under the :dependencies
key.
(defproject project1 "0.0.1"
:description "Something"
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/clojure-contrib "1.2.0"]
[clj-time "0.6.0"]])
Note: The entries in :dependencies
can originate from either maven (maven central repository) or Clojars.
It also looks like you are using clojure.contrib
. This library has been deprecated and you should upgrade, if you can. If you are only using clojure.contrib.seq/positions
, take a look at this StackOverflow answer. You can also reimplement it with just clojure.core functions:
(defn positions [pred coll]
(for [[idx elt]
(map-indexed vector coll)
:when (pred elt)]
idx))