Kafka
  1. Kafka
  2. KAFKA-885

sbt package builds two kafka jars

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Invalid
    • Affects Version/s: 0.8.0
    • Fix Version/s: None
    • Component/s: packaging
    • Labels:

      Description

      After recent changes to sbt, ./sbt package now builds two kafka jars. One under
      ./target/scala-2.8.0/kafka_2.8.0-0.8.0-SNAPSHOT.jar
      and another under
      ./core/target/scala-2.8.0/kafka_2.8.0-0.8.0-SNAPSHOT.jar

      The former seems incorrect.

      1. 885-v1.patch
        0.5 kB
        Ashwanth F

        Issue Links

          Activity

          Hide
          Jay Kreps added a comment -

          We are on gradle now.

          Show
          Jay Kreps added a comment - We are on gradle now.
          Hide
          Ashwanth F added a comment - - edited

          "Is there away to not generating the top level jar at all?" - Let me see if we can do that. Will get back to you.

          Show
          Ashwanth F added a comment - - edited "Is there away to not generating the top level jar at all?" - Let me see if we can do that. Will get back to you.
          Hide
          Jun Rao added a comment -

          Thanks for the patch. Is there away to not generating the top level jar at all? If not, I guess this patch is also ok and we can tak it in 0.8.

          Show
          Jun Rao added a comment - Thanks for the patch. Is there away to not generating the top level jar at all? If not, I guess this patch is also ok and we can tak it in 0.8.
          Hide
          Ashwanth F added a comment - - edited

          Hi Jun Rao, even the ./contrib directory has an almost empty .jar file in ./contrib/target/scala-2.8.0. Aggregated projects in Build.scala (i.e. kafka and contrib) are exhibiting this behavior. This is because they don't have any src folders as immediate children of those base directories (root or contrib) and hence they are generating a manifest only .jar file.

          If the name as 'kafka_<version> seems confusing, we can either 1) add a build.sbt to the root folder that changes the name of the root target folder's jar to root_2.8.0-0.8-SNAPSHOT.jar. OR 2) we can change the core/target folder's output jar to core_2.8.0-0.8.0-SNAPSHOT.jar instead of kafka.

          I have added a patch for (1) just in case.

          Show
          Ashwanth F added a comment - - edited Hi Jun Rao, even the ./contrib directory has an almost empty .jar file in ./contrib/target/scala-2.8.0. Aggregated projects in Build.scala (i.e. kafka and contrib) are exhibiting this behavior. This is because they don't have any src folders as immediate children of those base directories (root or contrib) and hence they are generating a manifest only .jar file. If the name as 'kafka_<version> seems confusing, we can either 1) add a build.sbt to the root folder that changes the name of the root target folder's jar to root_2.8.0-0.8-SNAPSHOT.jar. OR 2) we can change the core/target folder's output jar to core_2.8.0-0.8.0-SNAPSHOT.jar instead of kafka. I have added a patch for (1) just in case.

            People

            • Assignee:
              Unassigned
              Reporter:
              Jun Rao
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development