Skip to content

SQL-2737: Add thirdparty notices as artifacts #347

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

Merged

Conversation

nbagnard
Copy link
Collaborator

@nbagnard nbagnard commented Apr 8, 2025

No description provided.

@nbagnard nbagnard requested a review from a team as a code owner April 8, 2025 06:29
@nbagnard nbagnard requested review from bucaojit and jchemburkar April 8, 2025 20:21
Copy link
Member

@bucaojit bucaojit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Nice work figuring out how to generate the dependencies 🔥

@@ -0,0 +1,13 @@
MongoDB uses third-party libraries or other resources that may
be distributed under licenses different than the MongoDB software.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
be distributed under licenses different than the MongoDB software.
be distributed under licenses different from the MongoDB software.

MongoDB uses third-party libraries or other resources that may
be distributed under licenses different than the MongoDB software.

In the event that we accidentally failed to list a required notice,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In the event that we accidentally failed to list a required notice,
In the event that we accidentally fail to list a required notice,

dependencyNode.appendNode('groupId', artifact.moduleVersion.id.group)
dependencyNode.appendNode('artifactId', artifact.name)
dependencyNode.appendNode('version', artifact.moduleVersion.id.version)
dependencyNode.appendNode('scope', 'runtime')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I see in our previous release dependencies that mongodb-driver-sync has a scope of compile. Here it will be runtime, to be consistent we can set that to compile.

@nbagnard nbagnard added this pull request to the merge queue Apr 9, 2025
github-merge-queue bot pushed a commit that referenced this pull request Apr 9, 2025
* Add thirdparty notices as artifacts

* Generating thirparty license notices at publication time and adding a standalone task to validate it works

* Publish pom with fixed version to be consumable downstream

* Adding missing new line at the end of the file

* Only list first level runtime dependencies

* Fix thirdparty license notice header typos
Merged via the queue into mongodb:master with commit cefca9d Apr 9, 2025
6 checks passed
@nbagnard nbagnard deleted the SQL-2737_publish_thirdpartynotices branch April 9, 2025 04:37
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.

3 participants