Commits

Meikel Brandmeyer  committed f921c79

Remove obsoblete TaskContainer.add

  • Participants
  • Parent commits 7c07045

Comments (0)

Files changed (1)

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

     }
 
     private void configureUberjar(Project project) {
-        project.tasks.withType(Jar.class).asMap.each { name, jar ->
-            project.tasks.add(name: "uber" + name, type: Jar.class) {
+        project.tasks.withType(Jar).asMap.each { name, jar ->
+            project.task("uber" + name, type: Jar) {
                 description =
                     'Constructs a jar with all runtime dependencies included'
                 dependsOn jar.source, project.configurations.runtime
     }
 
     private void configureDepsTask(Project project) {
-        Copy deps = project.tasks.add("deps", Copy.class)
+        Copy deps = project.task("deps", type: Copy)
 
         deps.configure {
             description =