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(GradleWrapperMain.java:41)
Caused by: java.lang.ClassNotFoundException: org.gradle.cli.CommandLineParser
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

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 http://www.gradleware.com/video/gradle-wrapper-screencast/

cheers,
René