[
https://issues.apache.org/jira/browse/KAFKA-1171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845481#comment-13845481
]
David Arthur commented on KAFKA-1171:
-------------------------------------
Made some progress with the multi-scala plugin from
https://issues.apache.org/jira/browse/SAMZA-34. A few things work, some don't.
Top level tasks (assemble, build) don't work, but calling the specific tasks
like "./gradlew core:compileScala2_10Java core:compileScala2_10Scala" does work.
I can't figure out how to override the source sets however, which is important
b/c we have Scala-version-dependent code in some places (e.g.,
Annotations_2.9+.scala).
After hacking on this for a few hours, I'm inclined to go back to Ant. The
inability to debug what is happening under the covers with Gradle is pretty
frustrating.
If we _really_ want to use Gradle for the other plugins, we could create a
simple Ant build script for doing the cross-version build and call it from
Gradle (http://www.gradle.org/docs/current/userguide/ant.html). However, this
feels like asking from trouble (unnecessary complexity).
What do others think?
> Gradle build for Kafka
> ----------------------
>
> Key: KAFKA-1171
> URL: https://issues.apache.org/jira/browse/KAFKA-1171
> Project: Kafka
> Issue Type: Improvement
> Components: packaging
> Affects Versions: 0.8.1, 0.9.0
> Reporter: David Arthur
> Assignee: David Arthur
> Attachments: 0001-Adding-basic-Gradle-build.patch
>
>
> We have previously discussed moving away from SBT to an
> easier-to-comprehend-and-debug build system such as Ant or Gradle. I put up a
> patch for an Ant+Ivy build a while ago[1], and it sounded like people wanted
> to check out Gradle as well.
> 1. https://issues.apache.org/jira/browse/KAFKA-855
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)