Skip to content

Generates NOTICE file part for libraries and licenses from project dependency.

License

Notifications You must be signed in to change notification settings

grianbrcom/noticeCreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

noticeCreator

Generates NOTICE file part for libraries and licenses from project dependency.

Usage

For generate NOTICE file run this command:

python main.py notice -m maven.deps -n package-lock.json

For generate maven.deps file use the following command:

mvn dependency:list | grep -Poh "\S+:(system|provided|compile)" | sort | uniq > maven.deps

The tool try to find dependency in clearlydefined service and save the result in local folder. For local cache folder .noticeCreator is used inside user directory.

Not all dependencies are presented in clearlydefined. Some of the presented have a non valid specified License. In that case, you could manually overwrite the library license by the following command:

python main.py overwrite maven/mavencentral/aopalliance/aopalliance/1.0 MIT

For libraries from npmjs you could use special overwrite_npmjs command. The command will read License from npmjs resource and store it for future use. Example:

python main.py overwrite_npmjs npm:npmjs:-:color-name:1.1.3

About

Generates NOTICE file part for libraries and licenses from project dependency.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages