 (def tests-artef-jar-name (str tests-artef-name "-" (get-env :version) "-tests.jar"))
 
 (deftask build-tests-jar
-  "build jar with test runtime dependencies for connectors."
-  []
-  (comp
-    (pom :project tests-artef-project-name :classifier "tests")
-    (sift
-      :to-resource #{#"lifecycle_test_utils\.clj"
-                     #"connector_test_utils\.clj"}
-
-      :include #{#"lifecycle_test_utils\.clj"
-                 #"connector_test_utils\.clj"
-                 #"pom.xml"
-                 #"pom.properties"})
-
-    (jar :file tests-artef-jar-name)))
+         "build jar with test runtime dependencies for connectors."
+         []
+         (comp
+           (pom :project tests-artef-project-name
+                :classifier "tests"
+                :dependencies (merge-defaults
+                                ['sixsq/default-deps (get-env :version)]
+                                [['org.apache.curator/curator-test :scope "compile"]]))
+           (sift
+             :to-resource #{#"lifecycle_test_utils\.clj"
+                            #"connector_test_utils\.clj"}
+
+             :include #{#"lifecycle_test_utils\.clj"
+                        #"connector_test_utils\.clj"
+                        #"pom.xml"
+                        #"pom.properties"})
+
+           (jar :file tests-artef-jar-name)))
 
 (deftask mvn-test
          "run all tests of project"

       :version (get-env :version)}
  test {:junit-output-to ""}
  install {:pom (str (get-env :project))}
  push {:pom (str (get-env :project))
        :repo "sixsq"})

(deftask dev-env

  :dependencies
  #(vec (concat %
                (merge-defaults
                  ['sixsq/default-deps (get-env :version)]
                  '[[org.clojure/clojure]

                    [aleph]
                    [cheshire]                              ;; newer version needed for ring-json
                    [compojure]
                    [com.jcraft/jsch]
                    [clj-stacktrace]
                    [clj-time]
                    [environ]
                    [expound]
                    [instaparse]
                    [log4j]
                    [metrics-clojure]
                    [metrics-clojure-ring]
                    [metrics-clojure-jvm]
                    [metrics-clojure-graphite]
                    [me.raynes/fs]
                    [org.clojure/data.json]
                    [org.clojure/java.classpath]
                    [org.clojure/tools.cli]
                    [org.clojure/tools.logging]
                    [org.clojure/tools.namespace]
                    [potemkin]
                    [ring/ring-core]
                    [ring/ring-json]
                    [superstring]
                    [zookeeper-clj]

                    [com.sixsq.slipstream/utils]
                    [com.sixsq.slipstream/auth]
                    [com.sixsq.slipstream/token]
                    [com.sixsq.slipstream/SlipStreamDbBinding-jar]
                    [org.apache.logging.log4j/log4j-core]
                    [org.apache.logging.log4j/log4j-api]

                    ;; needed for migration scripts
                    [korma]
                    [org.hsqldb/hsqldb]
                    [org.clojure/java.jdbc]

                    ;; test dependencies
                    [peridot]
                    [honeysql]
                    [org.clojure/test.check]
                    [org.slf4j/slf4j-log4j12 :scope "test"]
                    [com.cemerick/url nil :scope "test"]
                    [org.apache.curator/curator-test :scope "test"]

                    ;; boot tasks
                    [boot-environ]
                    [adzerk/boot-test]
                    [adzerk/boot-reload]
                    [onetom/boot-lein-generate]
                    [tolitius/boot-check]]))))

(require
  '[environ.boot :refer [environ]]
