You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Joe DiPol (Jira)" <ji...@apache.org> on 2023/07/01 01:23:00 UTC

[jira] [Created] (KAFKA-15138) Java kafka-clients compression dependencies should be optional

Joe DiPol created KAFKA-15138:
---------------------------------

             Summary: Java kafka-clients compression dependencies should be optional
                 Key: KAFKA-15138
                 URL: https://issues.apache.org/jira/browse/KAFKA-15138
             Project: Kafka
          Issue Type: Bug
          Components: clients
    Affects Versions: 3.4.0
            Reporter: Joe DiPol


If you look at

[https://repo1.maven.org/maven2/org/apache/kafka/kafka-clients/3.4.0/kafka-clients-3.4.0.pom]

You see that the dependencies for the compression libraries (like lz4-java) do NOT have "{{{}<optional>true</optional>{}}}". That means that these libraries are transitive dependencies which will be pulled (and potentially security scanned) for any project that uses kafka-clients. 

This is not correct. These compression libraries are optional and should not be transitive dependencies of kafka-clients. Therefore the above pom should state {{optional}} like:

{{{{<dependency>}}}}
{{{{    <groupId>org.lz4</groupId>}}}}
{{{{    <artifactId>lz4-java</artifactId>}}}}
{{{{    <version>1.8.0</version>}}}}
{{{{    <scope>runtime</scope>
}}}}{{{{    <optional>true</optional>}}}}
{{{{</dependency>}}}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)