Replace gradleApi() dependency with newer version?

The best solution I can come up with… is to ammend the GradleAPI() method so that it does the following. 1. adds the gradle install directory and lib directories as FlatFile repositories. 2. constructs a module with the GradleAPI as the main artifact and the other artifacts as transitive dependencies.

This way us users can use the standard dependency filtering systems and configure it all however we want.

Unfortunately… the placing of the gradleApi() method makes me assume that its called on the DependencuHandler… which may not have a project instance on which to create a repository… I think it would be best if they simply had a GradlePlugin plugin, which would add everything as I mentioned above. of course thats quite a major APi breakage, and its unlikely to happen.