ppkarwasz commented on issue #4720:
URL: https://github.com/apache/eventmesh/issues/4720#issuecomment-2049549853

   An alternative approach would be through SBOM generation:
   
   1. You **generate** an SBOM for your binary distribution (there is a [Gradle 
plugin for that](https://github.com/CycloneDX/cyclonedx-gradle-plugin)),
   2. The [CycloneDX format](https://cyclonedx.org/specification/overview/) has 
all the data you need to determine which license applies to which component,
   3. You can create a script that **generates** your licensing data.
   According to the [INFRA guide on 
licensing](https://infra.apache.org/licensing-howto.html) you don't need a file 
for each dependency, but you **need** to modify the **main** `LICENSE` file in 
your binary distribution to mention the licenses of all the bundled 
dependencies. Therefore the structure of your binary distribution could look 
like:
       ```
       LICENSE
       NOTICE
       licenses/
           Apache-2.0.txt
           BSD-3-Clause.txt
       ```
       where `LICENSE` is generated and looks like:
       ```
       <text of Apache 2.0 license>
   
       This distribution contains the following third-party:
   
       lib/accessors-smart-2.4.7.jar licensed under 'Apache-2.0'. For details 
see: licenses/Apache-2.0.txt
       lib/super-widget-1.2.3.jar licensed under 'BSD-3-Clause'. For details 
see: licenses/BSD-3-Clause.txt
       ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to