Browse files

Sort the dependencies by their file name

  • Loading branch information...
1 parent 40c165c commit 5841ad6cf8a7ae96e5a55fdf27af817aba45ae25 @laurentpetit laurentpetit committed Apr 12, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 ccw.leiningen/src/clj/ccw/leiningen/classpath_container.clj
@@ -100,11 +100,14 @@
"Given a project (anything that coerces to ccw.util.eclipse/IProjectCoercion),
analyze its project.clj file, grab the dependencies, and return a list
of jar files.
+ Return the dependencies sorted alphabetically via their file name.
Throws Aether exceptions if a problem occured"
(let [lein-project (u/lein-project project)
dependencies (resolve-dependencies :dependencies lein-project)]
- (filter #(-> % .getName (.endsWith ".jar")) dependencies)))
+ (->> dependencies
+ (filter #(-> % .getName (.endsWith ".jar")))
+ (sort-by #(.getName %)))))
(defn- delete-container-markers [?project]
(.deleteMarkers (e/resource ?project)

0 comments on commit 5841ad6

Please sign in to comment.