When building you need to use the ./gradelw script as Harsha said.  Please
take a look at the README for specific commands and how to run them.

/*******************************************
 Joe Stein
 Founder, Principal Consultant
 Big Data Open Source Security LLC
 http://www.stealth.ly
 Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
********************************************/


On Thu, Sep 4, 2014 at 10:59 AM, Shlomi Hazan <shl...@viber.com> wrote:

> it failed with JDK 8 so I hoped a newer gradle will maybe do the magic, and
> stepped into this other problem.
> I assume you will say :
> install JDK 7 and build with our gradle 1.6.
> is it so?
> Shlomi
>
>
> On Thu, Sep 4, 2014 at 5:41 PM, Harsha <ka...@harsha.io> wrote:
>
> > Did you tried "gradlew" script in kafka source dir.
> > -Harsha
> >
> > On Thu, Sep 4, 2014, at 07:32 AM, Shlomi Hazan wrote:
> > > what gradle version is used to build kafka_2.9.2-0.8.1.1 ?
> > >
> > > tried with v2 and failed with :
> > >
> > >
> > >
> > > gradle --stacktrace clean
> > >
> > > FAILURE: Build failed with an exception.
> > >
> > > * Where:
> > > Build file
> > >
> >
> '/home/shlomi/0dec0xb/project/vpmb/master/3rdparty/kafka/code/kafka-0.8.1.1-src/build.gradle'
> > > line: 34
> > >
> > > * What went wrong:
> > > A problem occurred evaluating root project 'kafka-0.8.1.1-src'.
> > > > Could not find method add() for arguments [licenseMain, class
> > > nl.javadude.gradle.plugins.license.License] on task set.
> > >
> > > * Try:
> > > Run with --info or --debug option to get more log output.
> > >
> > > * Exception is:
> > > org.gradle.api.GradleScriptException: A problem occurred evaluating
> root
> > > project 'kafka-0.8.1.1-src'.
> > >     at
> > >
> >
> org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)
> > >     at
> > >
> >
> org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:187)
> > >     at
> > >
> >
> org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:39)
> > >     at
> > >
> >
> org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
> > >     at
> > >
> >
> org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
> > >     at
> > >
> >
> org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:55)
> > >     at
> > >
> >
> org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:470)
> > >     at
> > >
> >
> org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:79)
> > >     at
> > >
> >
> org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:31)
> > >     at
> > >
> >
> org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:128)
> > >     at
> > >
> >
> org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:105)
> > >     at
> > >
> >
> org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:85)
> > >     at
> > >
> >
> org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:81)
> > >     at
> > >
> >
> org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
> > >     at
> > >
> >
> org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
> > >     at
> > >
> >
> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:39)
> > >     at
> > >
> >
> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:29)
> > >     at
> org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
> > >     at
> > >
> >
> org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
> > >     at
> > >
> >
> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
> > >     at
> > >
> >
> org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
> > >     at
> > >
> >
> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
> > >     at
> > >
> >
> org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
> > >     at
> > >
> >
> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
> > >     at
> > >
> >
> org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
> > >     at
> > >
> >
> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
> > >     at
> > >
> >
> org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
> > >     at org.gradle.launcher.Main.doAction(Main.java:33)
> > >     at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
> > >     at
> > >
> >
> org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
> > >     at
> > >
> >
> org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
> > >     at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
> > > Caused by: org.gradle.api.internal.MissingMethodException: Could not
> find
> > > method add() for arguments [licenseMain, class
> > > nl.javadude.gradle.plugins.license.License] on task set.
> > >     at
> > >
> >
> org.gradle.api.internal.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:68)
> > >     at
> > >
> >
> org.gradle.api.internal.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:56)
> > >     at
> > >
> >
> org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:172)
> > >     at
> > >
> >
> org.gradle.api.internal.tasks.DefaultTaskContainer_Decorated.invokeMethod(Unknown
> > > Source)
> > >     at
> > >
> >
> nl.javadude.gradle.plugins.license.LicensePlugin$_configureSourceSetRule_closure6_closure18.doCall(LicensePlugin.groovy:117)
> > >     at
> > >
> >
> org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:59)
> > >     at
> > >
>  org.gradle.listener.ActionBroadcast.execute(ActionBroadcast.java:39)
> > >     at
> > >
> >
> org.gradle.api.internal.DefaultDomainObjectCollection.doAdd(DefaultDomainObjectCollection.java:164)
> > >     at
> > >
> >
> org.gradle.api.internal.DefaultDomainObjectCollection.add(DefaultDomainObjectCollection.java:159)
> > >     at
> > >
> >
> org.gradle.api.internal.DefaultNamedDomainObjectCollection.add(DefaultNamedDomainObjectCollection.java:71)
> > >     at
> > >
> >
> org.gradle.api.internal.AbstractNamedDomainObjectContainer.create(AbstractNamedDomainObjectContainer.java:58)
> > >     at
> > >
> >
> org.gradle.api.internal.AbstractNamedDomainObjectContainer.create(AbstractNamedDomainObjectContainer.java:40)
> > >     at
> > >
> org.gradle.api.plugins.JavaPlugin.configureSourceSets(JavaPlugin.java:80)
> > >     at org.gradle.api.plugins.JavaPlugin.apply(JavaPlugin.java:68)
> > >     at org.gradle.api.plugins.JavaPlugin.apply(JavaPlugin.java:46)
> > >     at
> > >
> >
> org.gradle.api.internal.plugins.DefaultPluginContainer.providePlugin(DefaultPluginContainer.java:110)
> > >     at
> > >
> >
> org.gradle.api.internal.plugins.DefaultPluginContainer.addPluginInternal(DefaultPluginContainer.java:69)
> > >     at
> > >
> >
> org.gradle.api.internal.plugins.DefaultPluginContainer.apply(DefaultPluginContainer.java:35)
> > >     at
> > >
> >
> org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyPlugin(DefaultObjectConfigurationAction.java:117)
> > >     at
> > >
> >
> org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$200(DefaultObjectConfigurationAction.java:36)
> > >     at
> > >
> >
> org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.run(DefaultObjectConfigurationAction.java:85)
> > >     at
> > >
> >
> org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:130)
> > >     at
> > >
> >
> org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:41)
> > >     at
> > >
> >
> build_6i3s72vsr5r4u0gb7m8oo0piuq$_run_closure2.doCall(/home/shlomi/0dec0xb/project/vpmb/master/3rdparty/kafka/code/kafka-0.8.1.1-src/build.gradle:34)
> > >     at
> > >
> >
> org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:59)
> > >     at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:130)
> > >     at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:91)
> > >     at
> > >
> >
> org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:785)
> > >     at
> > >
> >
> org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:790)
> > >     at
> > >
> >
> org.gradle.api.internal.project.AbstractProject.subprojects(AbstractProject.java:773)
> > >     at
> > >
> >
> org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:225)
> > >     at
> > >
> >
> org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:129)
> > >     at
> > >
> >
> org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)
> > >     at
> > >
> org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:79)
> > >     at
> > >
> >
> build_6i3s72vsr5r4u0gb7m8oo0piuq.run(/home/shlomi/0dec0xb/project/vpmb/master/3rdparty/kafka/code/kafka-0.8.1.1-src/build.gradle:33)
> > >     at
> > >
> >
> org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52)
> > >     ... 31 more
> > >
> > >
> > >
> > > 10x
> > > Shlomi
> >
>

Reply via email to