(opennlp-sandbox) 01/01: OPENNLP-1693 - Sandbox Repository is missing LICENSE and NOTICE files
This is an automated email from the ASF dual-hosted git repository. rzo1 pushed a commit to branch OPENNLP-1693-Sandbox-Repository-is-missing-LICENSE-and-NOTICE-files in repository https://gitbox.apache.org/repos/asf/opennlp-sandbox.git commit 9243435c5d7e3326feaf6c83d039ebacf52ec530 Author: Richard Zowalla AuthorDate: Mon Jan 13 07:19:16 2025 +0100 OPENNLP-1693 - Sandbox Repository is missing LICENSE and NOTICE files --- .github/workflows/license.yaml | 70 ++ mallet-addon/LICENSE => LICENSE| 8 +- NOTICE | 469 + pom.xml| 117 + src/license/NOTICE.template| 7 + src/license/THIRD-PARTY.properties | 22 ++ 6 files changed, 689 insertions(+), 4 deletions(-) diff --git a/.github/workflows/license.yaml b/.github/workflows/license.yaml new file mode 100644 index 000..43a7500 --- /dev/null +++ b/.github/workflows/license.yaml @@ -0,0 +1,70 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: CI Master - Regenerate NOTICE + +on: + push: +branches: + - master + workflow_dispatch: + +jobs: + build: +runs-on: ubuntu-latest + +steps: + - uses: actions/checkout@v4 + - name: Set up JDK 21 +uses: actions/setup-java@v4 +with: + java-version: '21' + distribution: 'temurin' + + - name: Cache Maven packages +uses: actions/cache@v4 +with: + path: ~/.m2 + key: ${{ runner.os }}-main-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-main-m2 + + - name: Generate Dependency Licenses +run: | + mvn license:aggregate-add-third-party@generate-and-check-licenses \ + -Dlicense.skipAggregateAddThirdParty=false \ + -B \ + -Dlicense.thirdPartyFilename=DEPENDENCY-LICENSES \ + -Dlicense.outputDirectory=target + + - name: Create NOTICE File +run: | + cat src/license/NOTICE.template target/DEPENDENCY-LICENSES > NOTICE + + - name: Create Pull Request after License Regeneration +uses: peter-evans/create-pull-request@v7 +with: + base: main + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "Minor: Regenerated NOTICE File for ${{ github.sha }}" + committer: GitHub + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + signoff: true + branch: regenerate_license_file_after_dep_upgrade + delete-branch: true + title: "Regenerated NOTICE file after dependency changes" + body: | +Found some uncommited changes (from NOTICE regeneration) after running build on OpenNLP sandbox + labels: | +dependency \ No newline at end of file diff --git a/mallet-addon/LICENSE b/LICENSE similarity index 99% rename from mallet-addon/LICENSE rename to LICENSE index e06d208..d645695 100644 --- a/mallet-addon/LICENSE +++ b/LICENSE @@ -1,4 +1,5 @@ -Apache License + + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -178,7 +179,7 @@ Apache License APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" + boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a @@ -186,7 +187,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright {} {name of copyright owner} + Copyright [] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -199,4 +200,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
(opennlp-sandbox) 01/01: OPENNLP-1693 - Sandbox Repository is missing LICENSE and NOTICE files
This is an automated email from the ASF dual-hosted git repository. rzo1 pushed a commit to branch OPENNLP-1693-Sandbox-Repository-is-missing-LICENSE-and-NOTICE-files in repository https://gitbox.apache.org/repos/asf/opennlp-sandbox.git commit 84045664ed979d2d13530f536c6dd13263f9f534 Author: Richard Zowalla AuthorDate: Mon Jan 13 06:53:51 2025 +0100 OPENNLP-1693 - Sandbox Repository is missing LICENSE and NOTICE files --- mallet-addon/LICENSE => LICENSE | 109 ++-- NOTICE | 12 + 2 files changed, 118 insertions(+), 3 deletions(-) diff --git a/mallet-addon/LICENSE b/LICENSE similarity index 67% rename from mallet-addon/LICENSE rename to LICENSE index e06d208..9831293 100644 --- a/mallet-addon/LICENSE +++ b/LICENSE @@ -1,4 +1,5 @@ -Apache License + + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -178,7 +179,7 @@ Apache License APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" + boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a @@ -186,7 +187,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright {} {name of copyright owner} + Copyright [] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -200,3 +201,105 @@ Apache License See the License for the specific language governing permissions and limitations under the License. +The following license applies to the Snowball stemmers: + + Copyright (c) 2001, Dr Martin Porter + Copyright (c) 2002, Richard Boulton + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The following license applies to the Wordpiece tokenizer implementation: + +The MIT License (MIT) + +Copyright (c) 2019 Rob Rua + +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