   (let [artifact-id (first dep)]
     (not (contains? exclude-dependencies artifact-id))))
 
+
+(defn find-shared-config-files
+  [jar-file]
+  {:pre [(instance? JarFile jar-file)]
+   :post [(every? #(instance? JarEntry %) %)]}
+  (filter
+    #(and (.startsWith (.getName %) shared-config-prefix)
+          (not= shared-config-prefix (.getName %)))
+    (enumeration-seq (.entries jar-file))))
+
 (defn cp-shared-config-file
   [jar-file conf-file]
   (println "Copying shared config file:" (.getName conf-file))

  [lein-project]
  (let [deps (filter include-dep? (:dependencies lein-project))]
    (vec (mapcat (partial cp-shared-config-files-for-dep lein-project) deps))))

(defn -main
  [& args]

(def template-dir-prefix "./template")
(def staging-dir "./target/staging")
(def shared-config-prefix "ext/config/shared/")
(def docs-prefix "ext/docs/")

;; NOTE: this is unfortunate, but I couldn't come up with a better solution.
;; we need to walk over all of the dependencies in the lein project file
