Using locally built Gradle

Hello, I have built gradle locally the artifacts have been placed in .gradle\wrapper\dists\gradle-2.4-20150219230028+0000-bin. How do i point the gradle wrapper in a plugin to use the version i have locally built? Thanks

in your wrapper properties file you need to change the url to the distribution. it should be possible to use a file url to point to your local built gradle distribution.

I moved the gradle-wrapper jar file inside the folder of the locally built distribution into the plugin wrapper directory. I removed the version-date stamp, and updated the properties files.

I get

$ gradlew tasks
Exception in thread "main" java.lang.NoClassDefFoundError: org/gradle/cli/CommandLineParser
        at org.gradle.wrapper.GradleWrapperMain.main(
Caused by: java.lang.ClassNotFoundException: org.gradle.cli.CommandLineParser
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(

why are you moving the wrapper jar? that is not necessary. just keep all your namings as is an point the url in the wrapper properties to the distribution zip. for more information about how the gradle wrapper works have a look at the screencast at