Commits

Meikel Brandmeyer  committed a35f5c5

Add explicit clean task

  • Participants
  • Parent commits 549d433

Comments (0)

Files changed (1)

File scriptoresque-base/src/main/groovy/clojuresque/ClojureScriptBasePlugin.groovy

 
 import org.gradle.api.Plugin
 import org.gradle.api.Project
+import org.gradle.api.tasks.Delete
 import org.gradle.api.internal.project.ProjectInternal
 
 import kotka.gradle.utils.FileUtil
             }
             set.output.dir task
         }
+
+        String cleanTaskName = set.getTaskName("clean", "compileClojureScript")
+        project.task(cleanTaskName, type: Delete) {
+            delete { task.destinationDir }
+            delete { task.closureDir }
+        }
     }
 
     private void configureGzip(Project project) {