                                (map fs/file clj-dirs)
                                parent-clj-dirs)
                               vec)]
-    ;; recur on transitive deps, omit clojure and clojurescript
-    (when-let [trans-deps (dep-hierarchy dep)]
-      (debug (format "resolving transitive dependencies for %s:" art-name))
-      (debug trans-deps)
-      (->> trans-deps
-           keys
-           (remove #(#{'org.clojure/clojure 'org.clojure/clojurescript} (first %)))
-           (map (partial unzip&update-artifact! pname pversion pprefix skip-repackage-java-classes srcdeps (fs/file src-path (str/replace (str/join "/" [art-name-cleaned art-version]) "-" "_")) trans-deps prefix-exclusions project-source-dirs (map fs/file clj-dirs)))
-           doall))
-    (info (format "  retrieving %s artifact."  art-name))
-    (debug "    proj-source-dirs" project-source-dirs " clj files" clj-files "clj dirs" clj-dirs " path to dep" (fs/file src-path (str/join "/" [art-name-cleaned art-version])) "parent-clj-dirs: " parent-clj-dirs)
+    (info (format "  munge source files of %s artifact."  art-name-cleaned))
+    (debug "    proj-source-dirs" project-source-dirs " clj files" clj-files "clj dirs" clj-dirs " path to dep" src-path "parent-clj-dirs: " parent-clj-dirs)
     (debug "   modified namespace prefix: " repl-prefix)
     (debug "    src path: " src-path)
     (debug "    all dirs: " all-dirs)

            ;; remove old file
            (fs/delete old-path)))))))

(defn- expand-dep
  [repositories deps-node]
  (debug "deps-node: " deps-node)
  (let [res (if (map? deps-node)
          (->> (map
                (fn [[k v]]
                  (->> (aether/resolve-dependencies :coordinates [k] :repositories repositories)
                       (aether/dependency-hierarchy [k])))
                deps-node)
               (into {}))
          deps-node)]
    (debug "res: " res)
    res))

(defn- expand-dep-hierarchy
  [repositories dep-hierarchy]
  (clojure.walk/prewalk
   (partial expand-dep repositories)
   (zipmap (keys dep-hierarchy) (repeat nil))))

(defn source-deps
  "Dependencies as source: used as if part of the project itself.

      (do
        (info "working on an unresolved dependency hierarchy")
        (#'ldeps/walk-deps expanded-tree #'ldeps/print-dep)
        (walk-dep-tree
         expanded-tree
         unzip-artifact!
         update-artifact!
         {:src-path        srcdeps
          :parent-clj-dirs []}
         {:pname                       name
          :pversion                    version
          :pprefix                     pprefix
          :skip-repackage-java-classes skip-repackage-java-classes
          :srcdeps                     srcdeps-relative
          :prefix-exclusions           prefix-exclusions
          :project-source-dirs         project-source-dirs}))
      (do
        (info "working on a resolved dep hierarchy")
        (#'ldeps/walk-deps dep-hierarchy #'ldeps/print-dep)
        (walk-dep-tree
         ordered-hierarchy
         unzip-artifact!
         update-artifact!
         {:src-path        srcdeps
          :parent-clj-dirs []}
         {:pname                       name
          :pversion                    version
          :pprefix                     pprefix
          :skip-repackage-java-classes skip-repackage-java-classes
          :srcdeps                     srcdeps-relative
          :prefix-exclusions           prefix-exclusions
          :project-source-dirs         project-source-dirs})))
    (when-not (or skip-repackage-java-classes (empty? (class-files)))
      (class-deps-jar!)
      (apply-jarjar! name version)
