Commits

Meikel Brandmeyer committed cfcd58a

Small code cleanup exploiting groovyness

Comments (0)

Files changed (1)

src/main/groovy/de/kotka/gradle/ClojurePlugin.groovy

         DefaultClojureSourceSet clojureSourceSet =
             new DefaultClojureSourceSet(sourceSet.displayName,
                 projectInternal.fileResolver)
-        sourceSet.convention.plugins.put("clojure", clojureSourceSet)
+        sourceSet.convention.plugins["clojure"] = clojureSourceSet
         clojureSourceSet.clojure.srcDir(srcDir)
         sourceSet.resources.filter.exclude("**/*.clj")
         sourceSet.allSource.add(clojureSourceSet.clojure)
         ClojureCompileTask task = project.tasks.add(compileTaskName,
                 ClojureCompileTask.class)
         task.sourceSet = clojureSourceSet
-        task.setDescription(String.format("Compile the %s Clojure source.",
-                sourceSet.name))
+        task.description = String.format("Compile the %s Clojure source.",
+                sourceSet.name)
 
         ConventionMapping convMap = task.conventionMapping