You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Maksym Rymar (Jira)" <ji...@apache.org> on 2022/09/29 13:31:00 UTC
[jira] [Created] (DRILL-8321) Change kafka_2.13 dependency scope to test
Maksym Rymar created DRILL-8321:
-----------------------------------
Summary: Change kafka_2.13 dependency scope to test
Key: DRILL-8321
URL: https://issues.apache.org/jira/browse/DRILL-8321
Project: Apache Drill
Issue Type: Task
Affects Versions: 1.20.2
Reporter: Maksym Rymar
Assignee: Maksym Rymar
Fix For: 2.0.0
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:
# Compile both libraries on the same major Scala version.
# 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)