Commits

Meikel Brandmeyer committed 3e0037e

Disconnect traversal from task task container in uberjar (reported by Dave Ray)

Comments (0)

Files changed (1)

clojuresque/src/main/groovy/clojuresque/ClojurePlugin.groovy

 /*-
- * Copyright 2009,2010 © Meikel Brandmeyer.
+ * Copyright 2009-2012 © Meikel Brandmeyer.
  * All rights reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
     }
 
     private void configureUberjar(Project project) {
-        project.tasks.withType(Jar.class).each { jar ->
-            project.tasks.add(name: "uber" + jar.name, type: Jar.class) {
+        project.tasks.withType(Jar.class).asMap.each { name, jar ->
+            project.tasks.add(name: "uber" + name, type: Jar.class) {
                 description =
                     'Constructs a jar with all runtime dependencies included'
                 dependsOn jar.source, project.configurations.runtime