Skip to content

Expose the remote JDK legal/ directory as a jdk-legal filegroup - #393

Open
simonepri wants to merge 1 commit into
bazelbuild:masterfrom
simonepri:export-jdk-legal
Open

simonepri wants to merge 1 commit into
bazelbuild:masterfrom
simonepri:export-jdk-legal

Conversation

@simonepri

Copy link
Copy Markdown

Fixes #390.

The BUILD file generated for remote JDK repositories exposes bin, conf, include, lib and jmods through filegroups, but the downloaded legal/ directory is not reachable from any target. Projects that redistribute the JDK, for example by packaging it into a container image, need those notices: OpenJDK bundles third-party components whose licenses require them to accompany copies.

This adds a jdk-legal filegroup over legal/**, following the naming and allow_empty convention of the existing jdk-* filegroups. It is not added to the java_runtime srcs, so runtime runfiles are unchanged.

@simonepri
simonepri requested review from a team and hvadehra as code owners October 30, 2026 07:01
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.

Expose the remote JDK's legal/ directory from the generated BUILD file

2 participants