Commits

Meikel Brandmeyer committed 50c5d62

Don't depend on jar task for uberjar, but on its source

Inspired by a suggestion of Adam Murdoch

Comments (0)

Files changed (1)

src/main/groovy/clojuresque/ClojurePlugin.groovy

             project.tasks.add(name: "uber" + jar.name, type: Jar.class) {
                 description =
                     'Constructs a jar with all runtime dependencies included'
-                dependsOn jar, project.configurations.runtime
+                dependsOn jar.source, project.configurations.runtime
                 baseName = jar.baseName + "-standalone"
                 enabled = false
                 doFirst {
-                    if (!jar.enabled)
-                        throw new StopExecutionException("SKIPPED: " + jar.name + " not enabled")
                     project.configurations.runtime.each {
                         from project.zipTree(it)
                     }
-                    from project.zipTree(jar.archivePath)
+                    from jar.source
                 }
             }
         }