MartijnVisser opened a new pull request, #189: URL: https://github.com/apache/flink-shaded/pull/189
## Purpose of the change Backport of #184 and #185 ([FLINK-41544](https://issues.apache.org/jira/browse/FLINK-41544)) for release-20.0, used by Flink 2.2. Several jars don't ship the notices and licences of what they bundle. On this branch `flink-shaded-netty` (Netty 4.1.141.Final) ships none of Netty's notices and none of the licences of the third-party code Netty contains, and neither do the ZooKeeper jars for the part of Netty they bundle. ## Brief change log One commit per change: - **netty**: write Netty's attributions out in the NOTICE and ship the licences of the bundled non-ASLv2 code from Netty's `license/` at the tag, plus Bjoern Hoehrmann's UTF-8 decoder in `Utf8Validator` (MIT), which Netty's NOTICE doesn't list, and the APSL text and source notice for `dnsinfo.h`. Netty 4.1.141 also adapts Vert.x code in `HttpConversionUtil`, which is attributed too. - **tcnative**: credit netty-tcnative and Tomcat Native in `flink-shaded-netty-tcnative-dynamic`. - **zookeeper**: the jars bundle part of Netty and Guava, and from 3.6 on Dropwizard Metrics, but had none of Netty's licences and no public domain attributions; only the 3.5 jar carried ZooKeeper's notice, and none carried Metrics'. Written out per module, with ZooKeeper's own jar NOTICE excluded so it isn't repeated. - **guava**: credit the JSR-166 code and MurmurHash3 (public domain; resolved.html requires attribution). - **jackson, swagger**: stop concatenating dependency NOTICEs and write the attributions out instead. - **docs**: add FLINK-40090's cryptographic software notice to the README, as this branch publishes `flink-shaded-netty-tcnative-dynamic`. Netty 4.1 has no QUIC, and `flink-shaded-netty-tcnative-static` is not part of the default build on this branch, so those parts of #184/#185 don't apply. ## Verifying this change - Ran the `ci.yml` build (with `install` instead of `deploy`) and `check-license` locally: both pass. - Every module's classes and natives are byte-identical to a build of the current `release-20.0` head; only `META-INF` licence and NOTICE files change. - A script mapping classes and natives from third-party origins to their licence or NOTICE entry passes for the Netty, tcnative-dynamic and ZooKeeper jars, and fails on the current head. ## Impact and documentation Only `META-INF` legal files and the README change. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (please specify the tool below) Generated-by: Claude Code 2.1.331 (Claude Opus 5.5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
