From 18b287def5989466fbd6199968568da9a6fc4ffc Mon Sep 17 00:00:00 2001 From: Ilya Goncharov Date: Thu, 10 Oct 2019 13:14:16 +0300 Subject: [PATCH] Fix license information for js modules --- .../karma-kotlin-reporter.js | 10 ++++ license/README.md | 14 ++++++ license/third_party/lodash_LICENSE.txt | 49 +++++++++++++++++++ .../teamcity-service-messages_LICENSE.txt | 19 +++++++ 4 files changed, 92 insertions(+) create mode 100644 license/third_party/lodash_LICENSE.txt create mode 100644 license/third_party/teamcity-service-messages_LICENSE.txt diff --git a/libraries/tools/kotlin-test-js-runner/karma-kotlin-reporter.js b/libraries/tools/kotlin-test-js-runner/karma-kotlin-reporter.js index 3780a29bced2d..e5ef41dddc88c 100644 --- a/libraries/tools/kotlin-test-js-runner/karma-kotlin-reporter.js +++ b/libraries/tools/kotlin-test-js-runner/karma-kotlin-reporter.js @@ -1,6 +1,11 @@ const util = require('util'); const resolve = require('path').resolve; +/** + * From karma + * The MIT License + * Copyright (C) 2011-2019 Google, Inc. + */ // This ErrorFormatter is copied from standard karma's, // but without warning in case of failed original location finding function createFormatError(config, emitter) { @@ -62,6 +67,11 @@ function createFormatError(config, emitter) { }; } +/** + * From karma-teamcity-reporter. + * The MIT License + * Copyright (C) 2011-2013 Vojta Jína and contributors + */ const escapeMessage = function (message) { if (message === null || message === undefined) { return '' diff --git a/license/README.md b/license/README.md index b1e4a47058bdd..cef8660c727c6 100644 --- a/license/README.md +++ b/license/README.md @@ -181,6 +181,20 @@ any distributions of the tools or libraries: - License: Eclipse Public License v1.0 ([license/third_party/testdata/eclipse_license.txt][eclipse]) and Eclipse Distribution License - v1.0 ([license/third_party/testdata/eclipse_distribution_license.txt][eclipse-distribution]) - Origin: javax.persistence, Copyright (c) 2008, 2017 Sun Microsystems, Oracle Corporation. + + - Path: libraries/tools/kotlin-test-js-runner/karma-kotlin-reporter.js + - License: MIT ([license/third_party/karma_LICENSE.txt](third_party/karma_LICENSE.txt) + and [license/third_party/karma-teamcity-reporter_LICENSE.txt](third_party/karma-teamcity-reporter_LICENSE.txt)) + - Origin: Copyright (C) 2011-2019 Google, Inc. and Copyright (C) 2011-2013 Vojta Jína and contributors. + + - Path: libraries/tools/kotlin-test-js-runner/src/utils.ts + - License: MIT ([license/third_party/teamcity-service-messages_LICENSE.txt](third_party/teamcity-service-messages_LICENSE.txt) + and [license/third_party/lodash_LICENSE.txt](third_party/lodash_LICENSE.txt)) + - Origin: Copyright (c) 2013 Aaron Forsander and Copyright JS Foundation and other contributors + + - Path: libraries/tools/kotlin-source-map-loader/kotlin-source-map-loader.js + - License: MIT ([license/third_party/source-map-loader_LICENSE.txt](third_party/source-map-loader_LICENSE.txt)) + - Origin: Copyright JS Foundation and other contributors ## Example Code diff --git a/license/third_party/lodash_LICENSE.txt b/license/third_party/lodash_LICENSE.txt new file mode 100644 index 0000000000000..5b807415bbcf6 --- /dev/null +++ b/license/third_party/lodash_LICENSE.txt @@ -0,0 +1,49 @@ +The MIT License + +Copyright JS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. \ No newline at end of file diff --git a/license/third_party/teamcity-service-messages_LICENSE.txt b/license/third_party/teamcity-service-messages_LICENSE.txt new file mode 100644 index 0000000000000..b75c9725ef668 --- /dev/null +++ b/license/third_party/teamcity-service-messages_LICENSE.txt @@ -0,0 +1,19 @@ +Copyright (c) 2013 Aaron Forsander + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file