Commits

Meikel Brandmeyer committed e39d3e3

Configure task watching task in plugin

Comments (0)

Files changed (1)

clojuresque-extras/src/main/groovy/clojuresque/ClojureExtrasPlugin.groovy

 
 package clojuresque
 
+import clojuresque.tasks.TaskWatcher
+
 import org.gradle.api.Plugin
 import org.gradle.api.Project
 import org.gradle.api.tasks.Copy
     public void apply(Project project) {
         configureUberjar(project)
         configureDepsTask(project)
+        configureTaskWatcher(project)
     }
 
     private void configureUberjar(Project project) {
             from project.configurations.runtime
         }
     }
+
+    private void configureTaskWatcher(Project project) {
+        project.task("watchTasks", type: TaskWatcher) {
+            description = "Run watched tasks continually"
+            group = "other"
+        }
+    }
 }