Usage of a custom tasks in the project

Guys I have a custom plugin with custom tasks that I created as external plugin. When I use my tasks I have to do something like this:

import org.foo.bar.CustomTask
task foo(type: CustomTask) {
  theAwesomeConfig = 'awesome value'
}

The import spoils it a bit. Is there a different way of doing it?

Cheers, Greg

You can have your plugin create some tasks by default. But as soon as the user needs to create her own tasks, she will have to use an import or fully qualified class name.