gradle-plugins/toolbox

Allow override of Gradle API/TestKit remote dependencies to distribution

Closed this issue · 1 comments

The Gradle API/TestKit redistribution offered by this project are much better than artifact generated by the distribution. Our offers Javadoc and source JARs. However, they are about ~120 MB, basically downloading another distribution. It should be possible de degrade the experience and use the distribution generated artifact in term of correctness to favour speed.

You can now specify the gradleApiVersion to use. By default it uses minimumGradleVersion. You can use the special version id:

gradlePlugin {
    compatibility {
        gradleApiVersion = 'local'
    }
}

If you use any of the handy helper method gradleApi(<version>) and gradleTestKit(<version>) can accept the special version local which will use Gradle's gradleApi() and gradleTestKit().

This issues has the side effect of solving #44