the-other-tim-brown opened a new pull request, #997:
URL: https://github.com/apache/incubator-xtable/pull/997
Closes #701. Follows #895, which fixed the rest of #701's layout.
Each shaded module keeps its curated texts in
`src/main/resources/META-INF/licenses/`, so the thin jars of `xtable-aws`,
`xtable-hive-metastore` and `xtable-hudi-support-extensions` shipped 5, 12 and
3 license texts for dependencies they don't contain.
- **Root `pom.xml`:** `maven-jar-plugin` also excludes
`META-INF/licenses/**`, next to the `-bundled` excludes from #895.
- **Shaded module poms:** shade builds the bundle from the thin jar, so each
text is added back with an `IncludeResourceTransformer` that reads it from
`target/classes`. Shade can't include a directory, so it takes one transformer
per file.
- **`validate_bundled_license_texts.py`:**
- checks the thin jar of each shaded module: one `LICENSE`/`NOTICE` and
nothing under `META-INF/licenses/`
- fails when a curated text never reaches the bundle, i.e. a forgotten
transformer
After this, every published jar on `main` has one `META-INF/LICENSE` and one
`META-INF/NOTICE`, and only the bundles carry `META-INF/licenses/`.
Not fixed here: `xtable-utilities-bundled` still carries loose dependency
license files and no `META-INF/LICENSE`. It stays unchecked while it's
unpublished.
**Testing:**
- Rebuilt the four shaded modules.
- Every bundle carries the same texts as before (5, 17, 3, 1),
byte-identical to the sources.
- The validator passes. It fails on `main`'s thin jars, on a thin jar with a
planted text, and on a curated text with no transformer.
- `validate_shaded_license_coverage.sh`, `apache-rat` and spotless pass.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]