}
// groovy!!!
if (project.getPlugins().hasPlugin("groovy"))
{
GroovySourceSet set = (GroovySourceSet) new DslObject(main).getConvention().getPlugins().get("groovy");
DelayedFile dir = delayedFile(SOURCES_DIR + "/groovy");
task = makeTask("sourceMainGroovy", SourceCopyTask.class);
task.setSource(set.getGroovy());
task.setOutput(dir);
GroovyCompile compile = (GroovyCompile) project.getTasks().getByName(main.getCompileTaskName("groovy"));
compile.dependsOn("sourceMainGroovy");
compile.setSource(dir);