Commits

Meikel Brandmeyer committed 85545a2

Use ConfigureUtil for object configuration

Comments (0)

Files changed (4)

clojuresque/src/main/groovy/clojuresque/ClojurePluginConvention.groovy

 package clojuresque
 
 import clojuresque.tasks.ClojureExecAction
+import kotka.gradle.utils.ConfigureUtil
 
 import org.gradle.api.Project
 import org.gradle.process.ExecResult
     }
 
     public ExecResult clojureexec(Closure spec) {
-        ClojureExecAction action = project.configure(
+        ClojureExecAction action = ConfigureUtil.configure(
             new ClojureExecAction(project.fileResolver,
                 project.configurations.clojuresque),
             spec

clojuresque/src/main/groovy/clojuresque/tasks/ClojureCompileTask.groovy

 
 package clojuresque.tasks
 
+import kotka.gradle.utils.ConfigureUtil
 import kotka.gradle.utils.Delayed
 
 import org.gradle.api.file.FileCollection
         }
 
         project.clojureexec {
-            project.configure delegate, this.jvmOptions
+            ConfigureUtil.configure delegate, this.jvmOptions
             systemProperties "clojure.compile.path": destDir.path
             classpath = project.files(
                 this.clojureRoots.srcDirs,

clojuresque/src/main/groovy/clojuresque/tasks/ClojureDocTask.groovy

 
 package clojuresque.tasks
 
+import kotka.gradle.utils.ConfigureUtil
 import kotka.gradle.utils.Delayed
 
 import org.gradle.api.file.FileCollection
         destDir.mkdirs()
 
         project.clojureexec {
-            project.configure delegate, this.jvmOptions
+            ConfigureUtil.configure delegate, this.jvmOptions
             classpath = project.files(
                 this.clojureRoots.srcDirs,
                 this.classpath

clojuresque/src/main/groovy/clojuresque/tasks/ClojureTestTask.groovy

 
 package clojuresque.tasks
 
+import kotka.gradle.utils.ConfigureUtil
 import kotka.gradle.utils.Delayed
 
 import org.gradle.api.file.FileCollection
     @TaskAction
     public void runTests() {
         project.clojureexec {
-            project.configure delegate, this.jvmOptions
+            ConfigureUtil.configure delegate, this.jvmOptions
             classpath = project.files(
                 this.testRoots.srcDirs,
                 this.classesDir,