Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1308

Publish jar of test utilities to Maven


    • Type: Wish
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.8.1
    • Fix Version/s:
    • Component/s: None
    • Labels:


      For projects that use Kafka, and want to write tests that exercise Kafka (in our case, Samza), it's useful to have access to Kafka's test utility classes such as kafka.zk.EmbeddedZookeeper and kafka.utils.TestUtils. We can use ./gradlew testJar to build jar files that contain those classes, but as far as I know, these are currently not made available in a binary release.

      At the moment, we have to check those kafka*-test.jar files into the Samza repository. To avoid that, would it be possible to publish those jars of tests to Maven, so that they fit into the normal dependency management?

      Or perhaps, if publishing the tests themselves is not appropriate, we could move the test utilities into a separate module that is published, and make the tests depend on that module?


        1. KAFKA-1308.patch
          3 kB
          Chris Campbell
        2. KAFKA-1308-8.1.1.patch
          2 kB
          Jakob Homan
        3. KAFKA-1308.patch
          2 kB
          Jakob Homan
        4. kafka-1308_v2_0.8.1.patch
          0.5 kB
          Jun Rao
        5. KAFKA-1308-2.patch
          0.8 kB
          Jakob Homan
        6. KAFKA-1308-trunk.patch
          0.5 kB
          Jakob Homan

          Issue Links



              • Assignee:
                jghoman Jakob Homan
                martinkl Martin Kleppmann
              • Votes:
                4 Vote for this issue
                13 Start watching this issue


                • Created: