Thank you all, I am able to gradle now, here is my mistake, I install gradle by apt-get, and from gradle web, but system automatically pick apt-get gradle to run, and this version is quite outdated, what I did to apt-get remove gradle, and add higher version gradle to /etc/environment, now it works.
Hope this can help anyone who have the similar problem, always download and install latest version. On Thu, Oct 2, 2014 at 3:02 PM, Jun Rao <jun...@gmail.com> wrote: > Hmm, not sure what the issue is. You can also just copy the following files > from the 0.8.1 branch. > > gradle/wrapper/ > > gradle-wrapper.jar gradle-wrapper.properties > > Thanks, > > Jun > > On Thu, Oct 2, 2014 at 2:05 PM, Sa Li <sal...@gmail.com> wrote: > > > I git clone the latest kafka package, why can't I build the package > > > > gradle > > > > FAILURE: Build failed with an exception. > > > > * Where: > > Script '/home/ubuntu/kafka/gradle/license.gradle' line: 2 > > > > * What went wrong: > > A problem occurred evaluating script. > > > Could not find method create() for arguments [downloadLicenses, class > > nl.javadude.gradle.plugins.license.DownloadLicenses] on task set. > > > > * Try: > > Run with --stacktrace option to get the stack trace. Run with --info > > or --debug option to get more log output. > > > > BUILD FAILED > > > > > > Thanks > > > > > > -- > > > > Alec Li > > > -- Alec Li