Hi,
I am trying to figure out how to directly compile the existing plugins
(I will later need to write one)
what is the correct syntax?
trying this gradle -d -S
in elasticsearch\plugins\analysis\icu
five me this error
FAILURE: Build failed with an exception.
-
Where:
Build file 'C:\dev\trunk\main\elasticsearch\build.gradle' line: 5 -
What went wrong:
A problem occurred evaluating root project 'elasticsearch-root'.
Cause: Could not find method apply() for arguments [{plugin=base}] on
root project 'elasticsearch-root'. -
Exception is:
org.gradle.api.GradleScriptException: Build file 'C:\dev\trunk\main
\elasticsearch\build.gradle' line: 5
A problem occurred evaluating root project 'elasticsearch-root'.
at org.gradle.groovy.scripts.DefaultScriptRunnerFactory
$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:55)
at
org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptProcessor.java:
-
at
org.gradle.configuration.DefaultProjectEvaluator.evaluate(DefaultProjectEvaluator.java:
35)
at
org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:
521)
at
org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:
54)
at org.gradle.api.internal.project.ProjectInternal
$evaluate.call(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:
40)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
117)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
121)
at org.gradle.configuration.BuildConfigurer
$_closure1.doCall(BuildConfigurer.groovy:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)
at
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:
272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:
880)
at groovy.lang.Closure.call(Closure.java:279)
at
org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:
48)
at
org.codehaus.groovy.runtime.ConversionHandler.invoke(ConversionHandler.java:
77)
at $Proxy9.execute(Unknown Source)
at
org.gradle.api.internal.project.AbstractProject.applyActions(AbstractProject.java:
491)
at
org.gradle.api.internal.project.AbstractProject.allprojects(AbstractProject.java:
486)
at org.gradle.api.Project$allprojects.call(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:
40)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
117)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
125)
at
org.gradle.configuration.BuildConfigurer.process(BuildConfigurer.groovy:
48)
at org.gradle.GradleLauncher.doBuildStages(GradleLauncher.java:
147)
at org.gradle.GradleLauncher.doBuild(GradleLauncher.java:124)
at org.gradle.GradleLauncher.run(GradleLauncher.java:95)
at org.gradle.Main.execute(Main.java:100)
at org.gradle.Main.main(Main.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.gradle.BootstrapMain.main(BootstrapMain.java:50)
Caused by: org.gradle.api.internal.MissingMethodException: Could not
find method apply() for arguments [{plugin=base}] on root project
'elasticsearch-root'.
at
org.gradle.api.internal.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:
60)
at
org.gradle.api.internal.DynamicObjectHelper.invokeMethod(DynamicObjectHelper.java:
200)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite
$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:
229)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:
52)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:
40)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
117)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
129)
at
org.gradle.api.internal.project.DefaultProject.methodMissing(DefaultProject.groovy:
52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at
groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:813)
at
groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:
1098)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:
1051)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:
880)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:
706)
at
org.gradle.api.internal.project.DefaultProject.invokeMethod(DefaultProject.groovy)
at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source)
at org.gradle.groovy.scripts.DefaultScriptMetaData
$_applyMetaData_closure1.doCall(DefaultScriptMetaData.groovy:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at
org.codehaus.groovy.runtime.metaclass.ClosureMetaMethod.invoke(ClosureMetaMethod.java:
81)
at
groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:813)
at
groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:
1098)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:
1051)
at
groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:923)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:
880)
at
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:
66)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:
44)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:
143)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:
151)
at build_gradle_f298f41f71b4ce50d49bef303b550e27.run(C:\dev
\trunk\main\elasticsearch\build.gradle:5)
at org.gradle.groovy.scripts.DefaultScriptRunnerFactory
$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:53)
... 38 common frames omitted
16:22:43.279 [main] ERROR org.gradle.Main -
BUILD FAILED