Skip to content

Commit c2563f3

Browse files
gyang94codex
andcommitted
[build] Fix Kafka shaded JAR license layout
Preserve the Kafka NOTICE under META-INF and exclude duplicate root legal files. Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 34/34 AI-Contributed/UT: 0/0
1 parent 81032d9 commit c2563f3

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

‎fluss-kafka/pom.xml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,17 @@
137137
<include>org.apache.kafka:kafka-clients</include>
138138
</includes>
139139
</artifactSet>
140+
<filters>
141+
<filter>
142+
<artifact>org.apache.kafka:kafka-clients</artifact>
143+
<excludes>
144+
<!-- Apache 2.0 is in META-INF/LICENSE; retain Kafka's
145+
NOTICE in META-INF/licenses/NOTICE.kafka-clients. -->
146+
<exclude>LICENSE</exclude>
147+
<exclude>NOTICE</exclude>
148+
</excludes>
149+
</filter>
150+
</filters>
140151
<!-- Retain Kafka classes loaded reflectively. -->
141152
<minimizeJar>false</minimizeJar>
142153
<shadedArtifactAttached>false</shadedArtifactAttached>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Apache Kafka
2+
Copyright 2026 The Apache Software Foundation.
3+
4+
This product includes software developed at
5+
The Apache Software Foundation (https://www.apache.org/).
6+
7+
This distribution has a binary dependency on jersey, which is available under the CDDL
8+
License. The source code of jersey can be found at https://github.com/jersey/jersey/.
9+
10+
This distribution has a binary test dependency on jqwik, which is available under
11+
the Eclipse Public License 2.0. The source code can be found at
12+
https://github.com/jlink/jqwik.
13+
14+
The streams-scala (streams/streams-scala) module was donated by Lightbend and the original code was copyrighted by them:
15+
Copyright (C) 2018 Lightbend Inc. <https://www.lightbend.com>
16+
Copyright (C) 2017-2018 Alexis Seigneurin.
17+
18+
This project contains the following code copied from Apache Hadoop:
19+
clients/src/main/java/org/apache/kafka/common/utils/PureJavaCrc32C.java
20+
Some portions of this file Copyright (c) 2004-2006 Intel Corporation and licensed under the BSD license.
21+
22+
This project contains the following code copied from Apache Hive:
23+
streams/src/main/java/org/apache/kafka/streams/state/internals/Murmur3.java

0 commit comments

Comments
 (0)