Skip to content

UID2-1750: fix Lombok scope and add MIT license attribution#610

Open
sunnywu wants to merge 1 commit intomainfrom
syw-UID2-1750-lombok-license-compliance
Open

UID2-1750: fix Lombok scope and add MIT license attribution#610
sunnywu wants to merge 1 commit intomainfrom
syw-UID2-1750-lombok-license-compliance

Conversation

@sunnywu
Copy link
Copy Markdown
Contributor

@sunnywu sunnywu commented Apr 1, 2026

Summary

  • Change Lombok from default compile scope to provided + optional so it no longer propagates as a transitive dependency to downstream services
  • Register Lombok as an explicit annotationProcessorPath in maven-compiler-plugin for Java 9+ module system compatibility
  • Add NOTICE file with Lombok copyright acknowledgment (compile-time only note)
  • Add THIRD-PARTY-LICENSES/lombok-LICENSE.txt with full MIT license text

Why

Lombok defaulting to compile scope caused it to leak transitively into all consumers of uid2-shared. This is architecturally wrong — Lombok is a build tool, not a runtime library — and means downstream JARs/Docker images bundle lombok.jar, triggering MIT attribution obligations in those projects. See UID2-1750.

Test plan

🤖 Generated with Claude Code

- Change Lombok from default compile scope to provided+optional so it
  does not propagate as a transitive dependency to downstream services
- Register Lombok as an explicit annotationProcessorPath in
  maven-compiler-plugin for Java 9+ module system compatibility
- Add NOTICE file acknowledging Lombok as a compile-time dependency
- Add THIRD-PARTY-LICENSES/lombok-LICENSE.txt with full MIT license text

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant