Skip to content

Kafka Connect: Update runtime distribution LICENSE and NOTICE - #18019

Merged
danielcweeks merged 9 commits into
apache:mainfrom
rmoff:kc-license-notice
Oct 15, 2026
Merged

danielcweeks merged 9 commits into
apache:mainfrom
rmoff:kc-license-notice

Conversation

@rmoff

@rmoff rmoff commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

#15212 is blocked on the Kafka Connect runtime distribution's LICENSE and NOTICE. This PR reconciles both against the bundled jars and regenerates runtime-deps.txt so checkRuntimeDeps guards the inventory. The cloud SDK dependencies are copied from the iceberg-aws-bundle, iceberg-gcp-bundle and iceberg-azure-bundle declarations rather than listed by hand. The Hive distribution is not reconciled, so assemble no longer produces it; its build configuration stays. Continues @rdblue's #16147; the jsr305 commit is his.

Test plan: ./gradlew :iceberg-kafka-connect:iceberg-kafka-connect-runtime:check passes (checkRuntimeDeps, checkClassUniqueness, 14 integration tests against the installed distribution); assemble --dry-run schedules only the main distribution and hiveDistZip still builds on request. Every jar in the zip was opened to list shaded packages, native libraries and embedded licence files, and each component's licence read from its POM or embedded text.


AI Disclosure

  • Model: Claude Fable 5.1 (earlier revisions also Claude Opus 4.8)
  • Platform/Tool: Claude Code
  • Human Oversight: partially reviewed, but I'm not a deep Java guy so I've tried to take a lot of care making sure this isn't slop :)
  • Prompt Summary: Reconcile the Kafka Connect runtime LICENSE and NOTICE against the bundled jars, regenerate runtime-deps.txt, and make the Hive distribution opt-in. The LICENSE and NOTICE entries, build changes and docs are generated; the dependency-sharing approach is the reviewer's.

@rmoff
rmoff force-pushed the kc-license-notice branch 2 times, most recently from f055eed to b0651a2 Compare September 10, 2026 14:22
@github-actions github-actions Bot added the docs label Sep 10, 2026
@rmoff
rmoff marked this pull request as ready for review September 10, 2026 18:55
@rmoff
rmoff force-pushed the kc-license-notice branch from 7ac7301 to 51d7956 Compare October 5, 2026 10:07
@danielcweeks
danielcweeks self-requested a review October 5, 2026 20:19
@rmoff
rmoff force-pushed the kc-license-notice branch from 51d7956 to 87bd092 Compare October 9, 2026 08:57
@danielcweeks

Copy link
Copy Markdown
Contributor

@rmoff I think one of my main issues with the way this is currently structured is that we're both fixing the non-hive distribution and stripping the hive dist out. We should probably just focus on fixing the non-hive without removing the other (we can remove the build dependency, but not the full build config).

Comment thread kafka-connect/build.gradle
Comment thread kafka-connect/build.gradle
rdblue and others added 8 commits October 12, 2026 10:08
(cherry picked from commit b7a3f89)
(cherry picked from commit eaf6b76)
The Hive distribution's LICENSE and NOTICE do not account for the jars it
bundles, so a default build should not produce it and releases should not
ship it. Its build configuration stays so that it can still be built
explicitly with hiveDistZip.

The distribution plugin adds every distribution's archives to assemble
through the archives configuration, so the Hive archives are removed from
that configuration rather than from the explicit assemble dependencies,
which the plugin's wiring made redundant.

Generated-by: Claude Code (Claude Fable 5.1)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Replace the hand-picked AWS, GCP and Azure SDK dependencies with copies of
the dependencies declared by the iceberg-aws-bundle, iceberg-gcp-bundle and
iceberg-azure-bundle projects, taken from each bundle's implementation
configuration once that project is evaluated. The distribution then offers
the same features as the bundles, its LICENSE and NOTICE content can be kept
in sync with theirs, and the lists cannot drift apart: the hand-picked list
had already kept the AWS SDK's Apache HttpClient 4 module after the bundle
and iceberg-aws moved to the HttpClient 5 module.

The copied dependencies are resolved in this project, so its excludes, forced
versions and conflict resolution apply, and the result is loose jars. The
bundle jars themselves are not shipped: they would duplicate every class
already present as a loose jar, and depending on them alone leaves
unrelocated libraries such as Woodstox and commons-codec at versions that
collide with the ones Hadoop needs.

Also excludes the log4j binding, as iceberg-aws-bundle does, and keeps
iceberg-bigquery, which the BigQuery Metastore catalog needs.

Approach suggested by Dan Weeks in review.

Generated-by: Claude Code (Claude Fable 5.1)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…lists

Generated with generateRuntimeDeps after switching the runtime to the cloud
bundles' dependency lists.

Generated-by: Claude Code (Claude Fable 5.1)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Accounts for the third parties bundled in the non-Hive runtime distribution,
checked jar by jar against the built zip, including code shaded inside other
jars. Removes the jsr305 entry (now excluded) and stale entries for jars that
are no longer bundled (Nimbus, json-smart, ASM, JCIP annotations,
commons-beanutils).

Adds entries for third parties that were bundled but unaccounted for, with
full licence text for the non-Apache ones: Bouncy Castle (MIT); the MSV,
RELAX NG Datatype (BSD) and isorelax (CDDL) components shaded in Woodstox;
FastDoubleParser and Schubfach (MIT) shaded in Jackson; the Mozilla Public
Suffix List (MPL 2.0) shipped by HttpComponents and Guava; BoringSSL and
Tomcat Native linked into grpc-netty-shaded and Conscrypt; the BSD-licensed
Bloom filter code in Hadoop and the derivative works in Commons Math; and the
Apache-licensed code shaded in Parquet (Thrift, fastutil), gRPC xDS (Envoy,
CEL, xDS, UDPA, PGV), OpenTelemetry, Reactor Netty and Azure SDK.

Corrects entries that named the wrong licence: Google API Common, GAX and
Auth Library are BSD 3-Clause; Jakarta Activation is EDL 1.0; JTS is listed
under its EDL 1.0 option as in the Spark and Flink runtimes. Restores the
copyright line in the ThreeTen Extra text, drops a duplicate JAXB entry, and
adds Iceberg's own derived-code entries (Parquet, Kite, Presto, Delta Lake,
Apache Commons, HttpComponents Client) as the Spark runtime LICENSE does.

Cloud entries are taken from the aws/gcp/azure bundle LICENSE files; where
those files were wrong (RELAX NG carried the Jakarta Activation text; the
Google libraries were correct there but not here) the text is taken from the
bundled jar or the upstream project instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit 34c1944)
Carries the required third-party attributions for the bundled jars: Iceberg's
own Kite, Presto and Delta Lake attributions, as in the NOTICE of every
bundled iceberg-* jar and in the Spark and Flink runtimes; the cloud notices
from the aws/gcp/azure bundle NOTICE files; and the substantive non-cloud
notices (Apache Hadoop export-control, Apache Commons Math, Jakarta
Activation, grpc-netty-shaded, Jackson including its Schubfach attribution,
and Airlift Aircompressor as in the Spark runtime). The AWS SDK block
reproduces the NOTICE shipped in the 2.54 jars in full. Boilerplate-only
Apache notices are omitted as covered by the top-level Apache Iceberg
attribution.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit e892196)
…efault

The default build now produces only the distribution without the Hive
Metastore client. Document how to build the Hive distribution explicitly
and drop the suggestion to pick between two distributions.

Generated-by: Claude Code (Claude Fable 5.1)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The libraries-bom 26.88 bump (apache#18094) adds the dev.cel:common,
dev.cel:protobuf and dev.cel:runtime jars to the distribution. Add the
same CEL-Java entry that apache#18226 added to gcp-bundle/LICENSE, and note
that the CEL specification is also bundled by CEL-Java.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit 87bd092)
@rmoff
rmoff force-pushed the kc-license-notice branch from 87bd092 to 4ffcf4a Compare October 12, 2026 16:13
@rmoff
rmoff requested a review from danielcweeks October 12, 2026 16:15
Comment thread kafka-connect/kafka-connect-runtime/main/LICENSE
Comment thread kafka-connect/kafka-connect-runtime/main/NOTICE
List the Presto and Kite code the bundled jars contain, drop the
Spark-only Delta Lake item, and add an entry for the APSL-licensed
dnsinfo.h header compiled into netty-resolver-dns-native-macos.

Generated-by: Claude Code (Claude Fable 5.1)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Comment thread kafka-connect/kafka-connect-runtime/main/LICENSE Outdated
@rmoff
rmoff requested a review from danielcweeks October 13, 2026 09:41
@danielcweeks

Copy link
Copy Markdown
Contributor

Thanks @rmoff!

@danielcweeks
danielcweeks merged commit 9120cfa into apache:main Oct 15, 2026
27 checks passed
danielcweeks pushed a commit to danielcweeks/iceberg that referenced this pull request Oct 19, 2026
…#18019)

* Kafka Connect: Update runtime distribution LICENSE and NOTICE

Co-authored-by: Ryan Blue <blue@apache.org>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants