Skip to content

GH-3695: Consolidate benchmark JAR license notices - #3815

Open
efegokdemir wants to merge 3 commits into
apache:masterfrom
efegokdemir:codex/issue-3695-shaded-license-notice
Open

efegokdemir wants to merge 3 commits into
apache:masterfrom
efegokdemir:codex/issue-3695-shaded-license-notice

Conversation

@efegokdemir

Copy link
Copy Markdown

Rationale for this change

The two benchmark uber-JARs currently copy every dependency's META-INF/LICENSE* and META-INF/NOTICE* resource into the shaded artifact. This produces multiple license and notice files and makes the local benchmark artifacts fail the repository's expected packaging check.

What changes are included in this PR?

  • Filter dependency license and notice resources during shading.
  • Aggregate them through Maven Shade's Apache license and notice transformers.
  • Apply the same configuration to both benchmark uber-JAR modules.

Fixes #3695

Are these changes tested?

  • PASS: Python XML parsing of both modified POMs.
  • PASS: git diff --check.
  • NOT RUN: Maven package/JAR-content validation. The available macOS Java runtime is an x86_64 Java 8 Applet Plugin, while this project requires Java 17+, so Maven cannot start on this Apple Silicon host.

Are there any user-facing changes?

No runtime code changes. The generated benchmark JARs now contain consolidated META-INF/LICENSE and META-INF/NOTICE resources.

AI assistance was used for repository navigation and drafting this focused change. I reviewed the complete diff and take responsibility for the submitted patch.

efegokdemir and others added 3 commits September 23, 2026 13:32
Signed-off-by: Efe Gökdemir <efe@rexcode.co.uk>
Let notice transformers read resources before shading and append canonical
license resources without discarding project or dependency text.

Validated both extracted module configurations with Shade 3.6.2: the
existing JAR-content check fails before and passes after, including
project and dependency resources. Selected reactor validate also passes.

Assisted-By: OpenAI Codex
Append LICENSE.txt and LICENSE.md resources in both benchmark JARs and use UTF-8 when merging NOTICE attributions.

Generated-by: dot
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.

Remove duplicate LICENSE and NOTICE files from benchmark JARs

1 participant