You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2014/02/03 06:08:09 UTC

[jira] [Updated] (KAFKA-1171) Gradle build for Kafka

     [ https://issues.apache.org/jira/browse/KAFKA-1171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jun Rao updated KAFKA-1171:
---------------------------

    Attachment: kafka-1171_v7.patch

Attach patch v7. Additionally fixes since v6.
1. defaulted the build to scala 2.8.0.
2. fixed the build artifact names to be consistent with those produced in sbt.
3. added the task jar_all to build the jar for all scala versions.
4. fixed the runtime dependency; now both copyDependantLibs and releaseTarGz generate the correct runtime dependent jars.
5. included David's fix on maven; pom file can be generated now.
6. fixed README.md.

TODO:
1.  Task "idea" fails with:
Execution failed for task ':ideaProject'.
> Cannot infer Scala class path because no Scala library Jar was found on class path: [/Users/jrao/.gradle/caches/artifacts-24/filestore/net.sf.jopt-simple/jopt-simple/3.2/jar/d625f12ba08083c8c16dcedd5396ec730e9e77ab/jopt-simple-3.2.jar]
2. The dependencies listed in pom file is a bit different from runtime dependencies.

The dependencies in the pom file (./gradlew :core:uploadArchives) include:
      <artifactId>easymock</artifactId>
      <artifactId>jopt-simple</artifactId>
      <artifactId>junit</artifactId>
      <artifactId>metrics-annotation</artifactId>
      <artifactId>metrics-core</artifactId>
      <artifactId>objenesis</artifactId>
      <artifactId>scala-library</artifactId>
      <artifactId>scalatest</artifactId>
      <artifactId>snappy-java</artifactId>
      <artifactId>zkclient</artifactId>
      <artifactId>zookeeper</artifactId>

Runtime dependencies (./gradlew copyDependantLibs) are:
./core/build/dependant-libs-2.8.0/jopt-simple-3.2.jar
./core/build/dependant-libs-2.8.0/log4j-1.2.15.jar
./core/build/dependant-libs-2.8.0/metrics-annotation-2.2.0.jar
./core/build/dependant-libs-2.8.0/metrics-core-2.2.0.jar
./core/build/dependant-libs-2.8.0/scala-library-2.8.0.jar
./core/build/dependant-libs-2.8.0/slf4j-api-1.7.2.jar
./core/build/dependant-libs-2.8.0/snappy-java-1.0.4.1.jar
./core/build/dependant-libs-2.8.0/zkclient-0.3.jar
./core/build/dependant-libs-2.8.0/zookeeper-3.3.4.jar


> 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, 0001-Adding-basic-Gradle-build.patch, 0001-Adding-basic-Gradle-build.patch, 0001-Adding-basic-Gradle-build.patch, 0001-Adding-basic-Gradle-build.patch, 0001-Adding-basic-Gradle-build.patch, kafka-1171_v6.patch, kafka-1171_v7.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.5#6160)