Pil0tXia opened a new pull request, #4831: URL: https://github.com/apache/eventmesh/pull/4831
<!-- ### Contribution Checklist - Name the pull request in the form "[ISSUE #XXXX] Title of the pull request", where *XXXX* should be replaced by the actual issue number. Skip *[ISSUE #XXXX]* if there is no associated github issue for this pull request. - Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review. - Each pull request should address only one issue. Please do not mix up code from multiple issues. - Each commit in the pull request should have a meaningful commit message. - Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below. (The sections below can be removed for hotfixes of typos) --> <!-- (If this PR fixes a GitHub issue, please add `Fixes #<XXX>` or `Closes #<XXX>`.) --> Fixes #4830 ### Motivation As is discussed in https://github.com/apache/eventmesh/issues/4720, the LICENSE and NOTICE files of the EventMesh binary distribution release need to be maintained manually, and for a long time the contents of the files were incomplete and not replenished in time when new dependencies were introduced. Following the suggestion in https://github.com/apache/eventmesh/issues/4720#issuecomment-2049549853, I implemented `generateDistLicense` task that automatically generates the `LICENSE` file and `licenses/` directory, and `generateDistNotice` task that automatically generates the `NOTICE` file. They can be run manually, or automatically when the `dist` task is executed. After https://github.com/apache/eventmesh/pull/4719 is merged, I'll specify the `generateDistLicense` task and the `generateDistNotice` task as dependencies of the `dist` task. The licenses generated by the `generateDistLicense` task are named after the license name, e.g. `Apache-2.0.txt`. I can also modify it to be named after an artifact, e.g. `log4j-core 2.22.1 Apache-2.0.txt`. Please let me know if you want to do like that. ### Modifications Add the `generateDistLicense` task and the `generateDistNotice` task. ### Documentation - Does this pull request introduce a new feature? (yes) - If yes, how is the feature documented? (JavaDocs) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@eventmesh.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@eventmesh.apache.org For additional commands, e-mail: dev-h...@eventmesh.apache.org