          (add-zipfileset {:src jar :includes (format "native/%s/%s/*" (os-name) (os-arch))}))))
 
 (defn fetch [deps dest]
-  (fetch-subprojects deps dest)
-  (when-let [deps (seq (remove subproject? deps))]
+  (when (seq deps)
     (let [ref-id (str "cake.deps.fileset." (.getName dest))]
       (ant DependenciesTask {:fileset-id ref-id :path-id (:name *project*)}
            (add-repositories (into repositories (:repositories *project*)))

  "Fetch dependencies and dev-dependencies. Use 'cake deps force' to refetch."
  (let [deps-str  (prn-str (into (sorted-map) (select-keys *project* [:dependencies :dev-dependencies])))
        deps-file (file "lib" "deps.clj")]
    (if (or (stale-deps? deps-str deps-file) (= ["force"] (:deps *opts*)))
      (do (fetch-deps)
          (spit deps-file deps-str))
      (when (= ["force"] (:compile *opts*))

  (when *config*
    (*config* (str "subproject." (name dep)))))

(defn add-jarset [task path exclusions]
  (let [exclusions (map #(re-pattern (str % "-\\d.*")) exclusions)]
    (doseq [jar (fileset-seq {:dir path :includes "*.jar"}) :let [name (.getName jar)]]
