Issue #8 resolved

clojure compilation fails with gradle 1.3

Victor Iacoban
created an issue
Caused by: java.lang.NoSuchMethodError: org.gradle.util.GUtil.join(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
08:15:37.462 [ERROR] [org.gradle.BuildExceptionReporter]        at clojuresque.ClojureExecAction.getAllJvmArgs(ClojureExecAction.java:49)
08:15:37.463 [ERROR] [org.gradle.BuildExceptionReporter]        at clojuresque.ClojureExecAction.getAllArguments(ClojureExecAction.java:66)
08:15:37.463 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.process.internal.AbstractExecHandleBuilder.build(AbstractExecHandleBuilder.java:127)
08:15:37.464 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.process.internal.JavaExecHandleBuilder.build(JavaExecHandleBuilder.java:214)
08:15:37.464 [ERROR] [org.gradle.BuildExceptionReporter]        at clojuresque.ClojureExecAction.execute(ClojureExecAction.java:74)
08:15:37.465 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.process.internal.JavaExecAction$execute.call(Unknown Source)
08:15:37.465 [ERROR] [org.gradle.BuildExceptionReporter]        at clojuresque.ClojurePluginConvention.clojureexec(ClojurePluginConvention.groovy:44)
08:15:37.466 [ERROR] [org.gradle.BuildExceptionReporter]        at clojuresque.ClojurePluginConvention.invokeMethod(ClojurePluginConvention.groovy)
08:15:37.466 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.BeanDynamicObject$GroovyObjectAdapter.invokeMethod(BeanDynamicObject.java:261)
08:15:37.467 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:122)
08:15:37.467 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicObject.invokeMethod(DefaultConvention.java:212)
08:15:37.468 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)
08:15:37.468 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.project.DefaultProject_Decorated.invokeMethod(Unknown Source)
08:15:37.469 [ERROR] [org.gradle.BuildExceptionReporter]        at clojuresque.ClojureCompileTask.compile(ClojureCompileTask.groovy:72)
08:15:37.469 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:216)
08:15:37.470 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:122)
08:15:37.470 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)
08:15:37.471 [ERROR] [org.gradle.BuildExceptionReporter]        at clojuresque.ClojureCompileTask_Decorated.invokeMethod(Unknown Source)
08:15:37.471 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23)
08:15:37.472 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$4.execute(AnnotationProcessingTaskFactory.java:161)
08:15:37.472 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$4.execute(AnnotationProcessingTaskFactory.java:156)
08:15:37.473 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:472)
08:15:37.473 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:461)
08:15:37.474 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:60)
08:15:37.474 [ERROR] [org.gradle.BuildExceptionReporter]        ... 57 more
08:15:37.475 [ERROR] [org.gradle.BuildExceptionReporter] 

Comments (6)

  1. Victor Iacoban reporter

    I've pushed clojuresque + fix to clojars, you can use that until Meikel has time to release these fixes:

    [org.clojars.viacoban/clojuresque "1.5.3-SNAPSHOT"]

  2. Meikel Brandmeyer repo owner

    I checked with the gradle guys and the issue is really more extensive than switching from GUtil to CollectionUtils. I will stop using private parts of gradle. I never really liked this, but reverse engineering the other plugins basically didn't leave another possibility.

    I will now bite the bullet and copy over the required classes. This sucks, but it is better than keeping a compatibility list. :/

    Edit: my question in gradle forums.

  3. Log in to comment