Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-8321

Change kafka_2.13 dependency scope to test

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.20.2
    • 1.20.3
    • None
    • None

    Description

      Drill has 2 scala dependencies:

      • org.apache.kafka.kafka_2.13
      • com.madhukaraphatak.java-sizeof_2.11

      which are targets on different scala versions 2.13 and 2.11. But Scala has no backward compatibility for major releases, so we can’t have 2 libraries compiled on various versions of scala.

      To solve the issue there are only 2 ways:

      1. Compile both libraries on the same major Scala version.
      1. Remove one of the libraries from Drill

      kafka_2.13 is server side (kafka’s server side) dependency and is unnecessary on the client side (Drill). Probably, it was added carelessly to Drill to a compile scope, while it is necessary only in a test scope.

      So kafka_2.13 can be removed from compile scope. It will reduce the Drill package size and the main – it will solve scala version conflict.

      Attachments

        Activity

          People

            mrymar Maksym Rymar
            mrymar Maksym Rymar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: