Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate both a BOM and a dependency BOM #750

Merged
merged 2 commits into from
Sep 21, 2022
Merged

Conversation

shs96c
Copy link
Collaborator

@shs96c shs96c commented Sep 20, 2022

This changes how we generate BOMs to something that is more often seen "in the wild". The main BOM now contains just a list of all the java_export targets that are listed in the java_exports parameter.

If the dependencies_maven_coordinates parameter is set, then we shall also generate a "dependencies" BOM, which lists all the first-order deps of the java_exports as well as having a reference to the parent BOM.

Each of these are ultimately a pom.xml file, and each of these is generated using its own rule.

This changes how we generate BOMs to something that is
more often seen "in the wild". The main BOM now contains
just a list of all the `java_export` targets that are
listed in the `java_exports` parameter.

If the `dependencies_maven_coordinates` parameter is
set, then we shall also generate a "dependencies" BOM,
which lists all the first-order deps of the `java_exports`
as well as having a reference to the parent BOM.

Each of these are ultimately a `pom.xml` file, and each
of these is generated using its own rule.
@shs96c shs96c merged commit ce39a6c into bazelbuild:master Sep 21, 2022
@shs96c shs96c deleted the better-bom branch September 21, 2022 10:10
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.

None yet

2 participants