DefaultTask is the standard Task implementation. You can extend this to implement your own task types.
DefaultTask
Gradle API 2.0