GRADLE-2434 Implement GradleProject.getTaskSelectors.

Use mixin for versions 1.2-1.11 and provide the data directly
in DefaultGradleProject for newer versions.