docs(LICENSE): apply Apache 2.0 License correctly (#7574)

Closes #6635
This commit is contained in:
Vladimir Gorej
2021-11-02 23:44:28 +01:00
committed by GitHub
parent 124b856fa0
commit bd75178241
5 changed files with 13 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
* *
*/ */
!README.md !README.md
!NOTICE
!package.json !package.json
!dist/swagger-ui.js !dist/swagger-ui.js
!dist/swagger-ui.js.map !dist/swagger-ui.js.map

View File

@@ -1,3 +1,4 @@
Apache License Apache License
Version 2.0, January 2004 Version 2.0, January 2004
http://www.apache.org/licenses/ http://www.apache.org/licenses/
@@ -186,7 +187,7 @@
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright 2020 SmartBear Software Inc. Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.

2
NOTICE Normal file
View File

@@ -0,0 +1,2 @@
swagger-ui
Copyright 2020-2021 SmartBear Software Inc.

View File

@@ -23,6 +23,10 @@ node create-manifest.js > ../dist/package.json
# Copy our README into the dist folder for npm # Copy our README into the dist folder for npm
cp ../README.md ../dist cp ../README.md ../dist
# Copy LICENSE & NOTICE into the dist folder for npm
cp ../../../LICENSE ../dist
cp ../../../NOTICE ../dist
# Run the release from the dist folder # Run the release from the dist folder
cd ../dist cd ../dist

View File

@@ -12,6 +12,10 @@ sed -i "s|\$\$VERSION|$UI_VERSION|g" package.json
# Copy UI's dist files to our directory # Copy UI's dist files to our directory
cp ../dist/* . cp ../dist/* .
# Copy LICENSE & NOTICE to our directory
cp ../LICENSE .
cp ../NOTICE .
if [ "$PUBLISH_DIST" = "true" ] || [ "$TRAVIS" = "true" ] ; then if [ "$PUBLISH_DIST" = "true" ] || [ "$TRAVIS" = "true" ] ; then
npm publish . npm publish .
else else