From 4dcfd1e61296585c96bc9eb148e4e2ea5d841bf2 Mon Sep 17 00:00:00 2001 From: Zhangyanrui123 <2844259537@qq.com> Date: Fri, 18 Sep 2026 00:14:36 +0800 Subject: [PATCH 1/2] build: complete incubation display and documentation licensing --- .github/scripts/verify_javadoc.py | 91 ++++++++ .github/workflows/maven-ci.yml | 9 +- .github/workflows/maven-publish.yml | 8 +- .github/workflows/release.yml | 9 + BUILDING.md | 3 + RELEASING.md | 22 ++ pom.xml | 66 +++++- src/javadoc-legal/LICENSE | 335 ++++++++++++++++++++++++++++ 8 files changed, 530 insertions(+), 13 deletions(-) create mode 100644 .github/scripts/verify_javadoc.py create mode 100644 src/javadoc-legal/LICENSE diff --git a/.github/scripts/verify_javadoc.py b/.github/scripts/verify_javadoc.py new file mode 100644 index 00000000..9883424a --- /dev/null +++ b/.github/scripts/verify_javadoc.py @@ -0,0 +1,91 @@ +# 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 +# +# https://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. + +"""Check actual Javadoc assets and complete, self-contained license texts.""" + +from pathlib import Path +import html +import re +import sys +import zipfile + +UPL_ASSETS = { + "resource-files/copy.svg", "resource-files/external-link.svg", + "resource-files/glass.svg", "resource-files/left.svg", + "resource-files/link.svg", "resource-files/right.svg", + "resource-files/stylesheet.css", "resource-files/x.svg", + "script-files/script.js", "script-files/search-page.js", + "script-files/search.js", +} +MIT_ASSETS = { + "script-files/jquery-3.7.1.min.js": b"jQuery v3.7.1", + "script-files/jquery-ui.min.js": b"jQuery UI - v1.14.1", + "resource-files/jquery-ui.min.css": b"jQuery UI - v1.14.1", +} +INDEXES = {kind + "-search-index.js" for kind in + ("member", "module", "package", "tag", "type")} + + +def require(condition, message): + if not condition: + raise ValueError(message) + + +def verify(path, root): + license_text = (root / "src/javadoc-legal/LICENSE").read_bytes() + with zipfile.ZipFile(path) as archive: + names = set(archive.namelist()) + require(len(names) == len(archive.namelist()), "Duplicate Javadoc entries") + for name in ("META-INF/LICENSE", "legal/LICENSE"): + require(archive.read(name) == license_text, "Incomplete license: " + name) + for name in ("NOTICE", "DISCLAIMER"): + require(archive.read("META-INF/" + name) == (root / name).read_bytes(), + "Incorrect project legal file: " + name) + for name, version in MIT_ASSETS.items(): + require(name in names, "Missing expected asset: " + name) + require(version in archive.read(name)[:300], "Unreviewed asset version: " + name) + require("script-files/script.js" in names, "Expected JDK 25 documentation") + for name in names: + if name.endswith("/"): + continue + data = archive.read(name) + if name.startswith(("resource-files/", "script-files/")): + require(name in UPL_ASSETS or name in MIT_ASSETS, + "Unreviewed documentation resource: " + name) + if name in UPL_ASSETS: + require(b"Universal Permissive License v 1.0" in data[:700], + "Missing resource license header: " + name) + elif name.endswith((".js", ".css", ".svg", ".png", ".woff", ".woff2")): + require(name in INDEXES, "Unreviewed documentation asset: " + name) + if name.startswith("legal/"): + require(name == "legal/LICENSE", "Unexpected legal file: " + name) + require(not data.lstrip().startswith(b"Please see"), "Dangling license pointer") + page = archive.read("org/casbin/jcasbin/main/package-summary.html").decode("utf-8") + require("javadoc (25" in page, "Unreviewed Javadoc generator") + normalize = lambda text: " ".join(html.unescape(re.sub(r"<[^>]+>", " ", text)).split()) + disclaimer = normalize((root / "DISCLAIMER").read_text(encoding="utf-8")) + for name in names: + if name.startswith("org/casbin/jcasbin/") and name.endswith(".html"): + require(disclaimer in normalize(archive.read(name).decode("utf-8")), + "Missing complete visible incubation disclaimer: " + name) + print("Verified Javadoc resources and licenses: " + str(path)) + + +if __name__ == "__main__": + if len(sys.argv) != 2: + raise SystemExit("Usage: verify_javadoc.py path/to/javadoc.jar") + verify(Path(sys.argv[1]), Path(__file__).resolve().parents[2]) diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml index ef2277f9..d6ab35ae 100644 --- a/.github/workflows/maven-ci.yml +++ b/.github/workflows/maven-ci.yml @@ -35,15 +35,20 @@ jobs: with: fetch-depth: '0' - - name: Set up JDK 8 + - name: Set up Java 8 and Javadoc 25 uses: actions/setup-java@v4 with: distribution: temurin - java-version: 8 + java-version: | + 25 + 8 - name: Build with Maven run: mvn -B -ntp clean verify cobertura:cobertura -Dgpg.skip=true + - name: Verify documentation licenses and display + run: python3 .github/scripts/verify_javadoc.py target/jcasbin-*-javadoc.jar + - name: Test release verification run: python3 -m unittest discover -s .github/scripts -p 'test_*.py' diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index c99c5e32..1cf729ae 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -67,11 +67,13 @@ jobs: MAVEN_VERSION: ${{ inputs.maven_version }} run: python3 .github/scripts/verify_release.py "${MAVEN_VERSION}" --output verified-release - - name: Set up JDK 1.8 + - name: Set up Java 8 and Javadoc 25 uses: actions/setup-java@v4 with: distribution: temurin - java-version: 8 + java-version: | + 25 + 8 server-id: ossrh server-username: OSSRH_JIRA_USERNAME server-password: OSSRH_JIRA_PASSWORD @@ -80,6 +82,8 @@ jobs: - name: Publish Maven run: | + mvn -B -ntp clean package -DskipTests -Dgpg.skip=true "-Drevision=${MAVEN_VERSION}" + python3 .github/scripts/verify_javadoc.py target/jcasbin-*-javadoc.jar mvn -B -ntp deploy -DskipTests "-Drevision=${MAVEN_VERSION}" env: MAVEN_VERSION: ${{ inputs.maven_version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fca0a410..6f6b78ed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -174,6 +174,15 @@ jobs: echo echo "- No feat/fix/doc commits were found in this release range." fi + + if [ "${PRERELEASE}" != "true" ]; then + printf '\nOfficial source: https://downloads.apache.org/incubator/casbin/jcasbin-%s-incubating/\n' "${CURRENT_VERSION}" + printf '\nVerify downloads: https://www.apache.org/info/verification.html\n' + fi + echo + echo "## Apache Incubator" + echo + cat DISCLAIMER } > RELEASE_NOTES.md - name: Create source packages diff --git a/BUILDING.md b/BUILDING.md index d3b9b3ec..ab209767 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -49,3 +49,6 @@ supplied by the release tag. To build artifacts with a specific version, pass The source archive name omits the RC number so promotion preserves the voted bytes. The archive, checksum and signature actually approved by the community must be promoted unchanged; a successful local build is not release approval. + +Javadoc additionally requires JDK 25; see the documentation build and +license verification instructions in [RELEASING.md](RELEASING.md). diff --git a/RELEASING.md b/RELEASING.md index 8d4e35f9..857593a0 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -98,3 +98,25 @@ These operations require no additional source PR after the preparation merges. References: [ASF release policy](https://www.apache.org/legal/release-policy.html) and [Central Maven publishing](https://central.sonatype.org/publish/publish-portal-maven/). + +## Documentation build and distribution metadata + +Compile and test with Java 8 and Maven 3.9.x. Generate Javadoc with JDK 25: +register version `25` in Maven toolchains, or pass +`-DjavadocExecutable=/path/to/jdk-25/bin/javadoc`. CI installs both JDKs; +Java 8 runs Maven. This changes the documentation tool, not the library's +Java 8 runtime requirement. + +The Javadoc JAR includes the complete Apache-2.0, UPL-1.0 and jQuery/jQuery UI +MIT texts from `src/javadoc-legal/LICENSE`. Generated resources retain their +license headers; fonts and syntax highlighting are not included. The main +and sources JARs retain the root LICENSE. After building, run +`python3 .github/scripts/verify_javadoc.py target/jcasbin-*-javadoc.jar`. +Review the actual resource versions and license texts together when updating +the documentation JDK. The verifier also checks visible incubation statements. + +This release retains `org.casbin:jcasbin` so existing consumers can upgrade +without changing dependency coordinates. The Incubator Maven `org.apache` +namespace guidance is a SHOULD; this compatibility rationale does not claim +an IPMC exception or release approval. Project identity and incubation status +are explicit in the POM, documentation and release notes. diff --git a/pom.xml b/pom.xml index d765ff76..aba0f739 100644 --- a/pom.xml +++ b/pom.xml @@ -26,8 +26,8 @@ under the License. ${revision} - Apache jCasbin - An authorization library that supports access control models like ACL, RBAC, ABAC in Java + Apache Casbin JCasbin (Incubating) + An authorization library that supports access control models like ACL, RBAC, ABAC in Java Apache Casbin (Incubating) is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF. https://casbin.apache.org/ 2017 @@ -54,6 +54,10 @@ under the License. scm:git:ssh://git@github.com/apache/casbin-jcasbin.git + + Apache Casbin (Incubating) + https://casbin.apache.org/ + Yang Luo hsluoyz@qq.com @@ -83,6 +87,12 @@ under the License. + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.6.3 + org.codehaus.mojo @@ -115,16 +125,27 @@ under the License. prepare-package copy-resources - ${project.build.directory}/reports/apidocs/META-INF + ${project.build.directory}/reports/apidocs ${project.basedir} + META-INF LICENSE NOTICE DISCLAIMER + + ${project.basedir}/src/javadoc-legal + META-INF + LICENSE + + + ${project.basedir}/src/javadoc-legal + legal + LICENSE + @@ -155,16 +176,43 @@ under the License. org.apache.maven.plugins maven-javadoc-plugin - 3.11.1 + 3.12.0 + + + + commons-beanutils + commons-beanutils + 1.11.0 + + + org.codehaus.plexus + plexus-utils + 4.0.3 + + + io.airlift + aircompressor + 2.0.3 + + + ${project.build.directory}/reports + en + UTF-8 + UTF-8 8 + + 25 + ${project.name} ${project.version} API + ${project.name} ${project.version} API + ${project.description} false - - none - - **/*.java - + + + --legal-notices none + --no-fonts + notnull diff --git a/src/javadoc-legal/LICENSE b/src/javadoc-legal/LICENSE new file mode 100644 index 00000000..181f566e --- /dev/null +++ b/src/javadoc-legal/LICENSE @@ -0,0 +1,335 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + 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 "[]" + 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 + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [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. + 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. + +======================================================================= +Additional licenses for the generated Javadoc convenience artifact only +======================================================================= + +This file is the license template for the Javadoc JAR. The source release +contains these license texts, not the generated documentation resources. +The main and sources JARs use the project's top-level Apache-2.0 LICENSE. + +JDK 25 standard-doclet CSS, JavaScript and SVG resources under resource-files/ +and script-files/ (except the jQuery files below) use UPL-1.0. Their original +copyright notices and UPL headers remain in each generated resource. + +script-files/jquery-3.7.1.min.js uses the jQuery 3.7.1 MIT license below. +script-files/jquery-ui.min.js and resource-files/jquery-ui.min.css use the +jQuery UI 1.14.1 MIT license below. No fonts or syntax-highlighting library +are bundled. Search-index data is generated from this project's API. + +Sources: https://github.com/openjdk/jdk/tree/jdk-25-ga/src/jdk.javadoc + https://opensource.oracle.com/licenses/upl/ + https://jquery.com/ and https://jqueryui.com/ + +Copyright holders and years are preserved in the individual resource headers. + +The Universal Permissive License (UPL), Version 1.0 + +Subject to the condition set forth below, permission is hereby granted to any +person obtaining a copy of this software, associated documentation and/or data +(collectively the "Software"), free of charge and under any and all copyright +rights in the Software, and any and all patent rights owned or freely +licensable by each licensor hereunder covering either (i) the unmodified +Software as contributed to or provided by such licensor, or (ii) the Larger +Works (as defined below), to deal in both + +(a) the Software, and +(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if +one is included with the Software (each a "Larger Work" to which the Software +is contributed by such licensors), + +without restriction, including without limitation the rights to copy, create +derivative works of, display, perform, and distribute the Software and make, +use, sell, offer for sale, import, export, have made, and have sold the +Software and the Larger Work(s), and to sublicense the foregoing rights on +either these or other terms. + +This license is subject to the following condition: +The above copyright notice and either this complete permission notice or at +a minimum a reference to the UPL must 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. + +## jQuery v3.7.1 + +### jQuery License +``` +jQuery v 3.7.1 +Copyright OpenJS Foundation and other contributors, https://openjsf.org/ + +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. +``` + +## jQuery UI v1.14.1 + +### jQuery UI License +``` +Copyright OpenJS Foundation and other contributors, https://openjsf.org/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/jquery-ui + +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 contained within the demos directory. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +All files located in the node_modules and external 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. + +``` From 676aa4b4c836928453a556092db6a63e63d08c08 Mon Sep 17 00:00:00 2001 From: Zhangyanrui123 <2844259537@qq.com> Date: Sun, 20 Sep 2026 00:43:24 +0800 Subject: [PATCH 2/2] build: simplify incubation display changes --- .github/scripts/verify_javadoc.py | 91 -------- .github/workflows/maven-ci.yml | 9 +- .github/workflows/maven-publish.yml | 8 +- BUILDING.md | 3 - RELEASING.md | 22 -- pom.xml | 67 +----- src/javadoc-legal/LICENSE | 335 ---------------------------- 7 files changed, 14 insertions(+), 521 deletions(-) delete mode 100644 .github/scripts/verify_javadoc.py delete mode 100644 src/javadoc-legal/LICENSE diff --git a/.github/scripts/verify_javadoc.py b/.github/scripts/verify_javadoc.py deleted file mode 100644 index 9883424a..00000000 --- a/.github/scripts/verify_javadoc.py +++ /dev/null @@ -1,91 +0,0 @@ -# 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 -# -# https://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. - -"""Check actual Javadoc assets and complete, self-contained license texts.""" - -from pathlib import Path -import html -import re -import sys -import zipfile - -UPL_ASSETS = { - "resource-files/copy.svg", "resource-files/external-link.svg", - "resource-files/glass.svg", "resource-files/left.svg", - "resource-files/link.svg", "resource-files/right.svg", - "resource-files/stylesheet.css", "resource-files/x.svg", - "script-files/script.js", "script-files/search-page.js", - "script-files/search.js", -} -MIT_ASSETS = { - "script-files/jquery-3.7.1.min.js": b"jQuery v3.7.1", - "script-files/jquery-ui.min.js": b"jQuery UI - v1.14.1", - "resource-files/jquery-ui.min.css": b"jQuery UI - v1.14.1", -} -INDEXES = {kind + "-search-index.js" for kind in - ("member", "module", "package", "tag", "type")} - - -def require(condition, message): - if not condition: - raise ValueError(message) - - -def verify(path, root): - license_text = (root / "src/javadoc-legal/LICENSE").read_bytes() - with zipfile.ZipFile(path) as archive: - names = set(archive.namelist()) - require(len(names) == len(archive.namelist()), "Duplicate Javadoc entries") - for name in ("META-INF/LICENSE", "legal/LICENSE"): - require(archive.read(name) == license_text, "Incomplete license: " + name) - for name in ("NOTICE", "DISCLAIMER"): - require(archive.read("META-INF/" + name) == (root / name).read_bytes(), - "Incorrect project legal file: " + name) - for name, version in MIT_ASSETS.items(): - require(name in names, "Missing expected asset: " + name) - require(version in archive.read(name)[:300], "Unreviewed asset version: " + name) - require("script-files/script.js" in names, "Expected JDK 25 documentation") - for name in names: - if name.endswith("/"): - continue - data = archive.read(name) - if name.startswith(("resource-files/", "script-files/")): - require(name in UPL_ASSETS or name in MIT_ASSETS, - "Unreviewed documentation resource: " + name) - if name in UPL_ASSETS: - require(b"Universal Permissive License v 1.0" in data[:700], - "Missing resource license header: " + name) - elif name.endswith((".js", ".css", ".svg", ".png", ".woff", ".woff2")): - require(name in INDEXES, "Unreviewed documentation asset: " + name) - if name.startswith("legal/"): - require(name == "legal/LICENSE", "Unexpected legal file: " + name) - require(not data.lstrip().startswith(b"Please see"), "Dangling license pointer") - page = archive.read("org/casbin/jcasbin/main/package-summary.html").decode("utf-8") - require("javadoc (25" in page, "Unreviewed Javadoc generator") - normalize = lambda text: " ".join(html.unescape(re.sub(r"<[^>]+>", " ", text)).split()) - disclaimer = normalize((root / "DISCLAIMER").read_text(encoding="utf-8")) - for name in names: - if name.startswith("org/casbin/jcasbin/") and name.endswith(".html"): - require(disclaimer in normalize(archive.read(name).decode("utf-8")), - "Missing complete visible incubation disclaimer: " + name) - print("Verified Javadoc resources and licenses: " + str(path)) - - -if __name__ == "__main__": - if len(sys.argv) != 2: - raise SystemExit("Usage: verify_javadoc.py path/to/javadoc.jar") - verify(Path(sys.argv[1]), Path(__file__).resolve().parents[2]) diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml index d6ab35ae..ef2277f9 100644 --- a/.github/workflows/maven-ci.yml +++ b/.github/workflows/maven-ci.yml @@ -35,20 +35,15 @@ jobs: with: fetch-depth: '0' - - name: Set up Java 8 and Javadoc 25 + - name: Set up JDK 8 uses: actions/setup-java@v4 with: distribution: temurin - java-version: | - 25 - 8 + java-version: 8 - name: Build with Maven run: mvn -B -ntp clean verify cobertura:cobertura -Dgpg.skip=true - - name: Verify documentation licenses and display - run: python3 .github/scripts/verify_javadoc.py target/jcasbin-*-javadoc.jar - - name: Test release verification run: python3 -m unittest discover -s .github/scripts -p 'test_*.py' diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 1cf729ae..c99c5e32 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -67,13 +67,11 @@ jobs: MAVEN_VERSION: ${{ inputs.maven_version }} run: python3 .github/scripts/verify_release.py "${MAVEN_VERSION}" --output verified-release - - name: Set up Java 8 and Javadoc 25 + - name: Set up JDK 1.8 uses: actions/setup-java@v4 with: distribution: temurin - java-version: | - 25 - 8 + java-version: 8 server-id: ossrh server-username: OSSRH_JIRA_USERNAME server-password: OSSRH_JIRA_PASSWORD @@ -82,8 +80,6 @@ jobs: - name: Publish Maven run: | - mvn -B -ntp clean package -DskipTests -Dgpg.skip=true "-Drevision=${MAVEN_VERSION}" - python3 .github/scripts/verify_javadoc.py target/jcasbin-*-javadoc.jar mvn -B -ntp deploy -DskipTests "-Drevision=${MAVEN_VERSION}" env: MAVEN_VERSION: ${{ inputs.maven_version }} diff --git a/BUILDING.md b/BUILDING.md index ab209767..d3b9b3ec 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -49,6 +49,3 @@ supplied by the release tag. To build artifacts with a specific version, pass The source archive name omits the RC number so promotion preserves the voted bytes. The archive, checksum and signature actually approved by the community must be promoted unchanged; a successful local build is not release approval. - -Javadoc additionally requires JDK 25; see the documentation build and -license verification instructions in [RELEASING.md](RELEASING.md). diff --git a/RELEASING.md b/RELEASING.md index 857593a0..8d4e35f9 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -98,25 +98,3 @@ These operations require no additional source PR after the preparation merges. References: [ASF release policy](https://www.apache.org/legal/release-policy.html) and [Central Maven publishing](https://central.sonatype.org/publish/publish-portal-maven/). - -## Documentation build and distribution metadata - -Compile and test with Java 8 and Maven 3.9.x. Generate Javadoc with JDK 25: -register version `25` in Maven toolchains, or pass -`-DjavadocExecutable=/path/to/jdk-25/bin/javadoc`. CI installs both JDKs; -Java 8 runs Maven. This changes the documentation tool, not the library's -Java 8 runtime requirement. - -The Javadoc JAR includes the complete Apache-2.0, UPL-1.0 and jQuery/jQuery UI -MIT texts from `src/javadoc-legal/LICENSE`. Generated resources retain their -license headers; fonts and syntax highlighting are not included. The main -and sources JARs retain the root LICENSE. After building, run -`python3 .github/scripts/verify_javadoc.py target/jcasbin-*-javadoc.jar`. -Review the actual resource versions and license texts together when updating -the documentation JDK. The verifier also checks visible incubation statements. - -This release retains `org.casbin:jcasbin` so existing consumers can upgrade -without changing dependency coordinates. The Incubator Maven `org.apache` -namespace guidance is a SHOULD; this compatibility rationale does not claim -an IPMC exception or release approval. Project identity and incubation status -are explicit in the POM, documentation and release notes. diff --git a/pom.xml b/pom.xml index aba0f739..3808bca2 100644 --- a/pom.xml +++ b/pom.xml @@ -26,8 +26,8 @@ under the License. ${revision} - Apache Casbin JCasbin (Incubating) - An authorization library that supports access control models like ACL, RBAC, ABAC in Java Apache Casbin (Incubating) is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF. + Apache jCasbin (Incubating) + An authorization library that supports access control models like ACL, RBAC, ABAC in Java https://casbin.apache.org/ 2017 @@ -54,10 +54,6 @@ under the License. scm:git:ssh://git@github.com/apache/casbin-jcasbin.git - - Apache Casbin (Incubating) - https://casbin.apache.org/ - Yang Luo hsluoyz@qq.com @@ -87,12 +83,6 @@ under the License. - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.6.3 - org.codehaus.mojo @@ -125,27 +115,16 @@ under the License. prepare-package copy-resources - ${project.build.directory}/reports/apidocs + ${project.build.directory}/reports/apidocs/META-INF ${project.basedir} - META-INF LICENSE NOTICE DISCLAIMER - - ${project.basedir}/src/javadoc-legal - META-INF - LICENSE - - - ${project.basedir}/src/javadoc-legal - legal - LICENSE - @@ -176,43 +155,17 @@ under the License. org.apache.maven.plugins maven-javadoc-plugin - 3.12.0 - - - - commons-beanutils - commons-beanutils - 1.11.0 - - - org.codehaus.plexus - plexus-utils - 4.0.3 - - - io.airlift - aircompressor - 2.0.3 - - + 3.11.1 - ${project.build.directory}/reports - en - UTF-8 - UTF-8 8 - - 25 - ${project.name} ${project.version} API - ${project.name} ${project.version} API - ${project.description} + Apache Casbin (Incubating) is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF. false + + none - - - --legal-notices none - --no-fonts - + + **/*.java + notnull diff --git a/src/javadoc-legal/LICENSE b/src/javadoc-legal/LICENSE deleted file mode 100644 index 181f566e..00000000 --- a/src/javadoc-legal/LICENSE +++ /dev/null @@ -1,335 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - 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 "[]" - 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 - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [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. - 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. - -======================================================================= -Additional licenses for the generated Javadoc convenience artifact only -======================================================================= - -This file is the license template for the Javadoc JAR. The source release -contains these license texts, not the generated documentation resources. -The main and sources JARs use the project's top-level Apache-2.0 LICENSE. - -JDK 25 standard-doclet CSS, JavaScript and SVG resources under resource-files/ -and script-files/ (except the jQuery files below) use UPL-1.0. Their original -copyright notices and UPL headers remain in each generated resource. - -script-files/jquery-3.7.1.min.js uses the jQuery 3.7.1 MIT license below. -script-files/jquery-ui.min.js and resource-files/jquery-ui.min.css use the -jQuery UI 1.14.1 MIT license below. No fonts or syntax-highlighting library -are bundled. Search-index data is generated from this project's API. - -Sources: https://github.com/openjdk/jdk/tree/jdk-25-ga/src/jdk.javadoc - https://opensource.oracle.com/licenses/upl/ - https://jquery.com/ and https://jqueryui.com/ - -Copyright holders and years are preserved in the individual resource headers. - -The Universal Permissive License (UPL), Version 1.0 - -Subject to the condition set forth below, permission is hereby granted to any -person obtaining a copy of this software, associated documentation and/or data -(collectively the "Software"), free of charge and under any and all copyright -rights in the Software, and any and all patent rights owned or freely -licensable by each licensor hereunder covering either (i) the unmodified -Software as contributed to or provided by such licensor, or (ii) the Larger -Works (as defined below), to deal in both - -(a) the Software, and -(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -one is included with the Software (each a "Larger Work" to which the Software -is contributed by such licensors), - -without restriction, including without limitation the rights to copy, create -derivative works of, display, perform, and distribute the Software and make, -use, sell, offer for sale, import, export, have made, and have sold the -Software and the Larger Work(s), and to sublicense the foregoing rights on -either these or other terms. - -This license is subject to the following condition: -The above copyright notice and either this complete permission notice or at -a minimum a reference to the UPL must 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. - -## jQuery v3.7.1 - -### jQuery License -``` -jQuery v 3.7.1 -Copyright OpenJS Foundation and other contributors, https://openjsf.org/ - -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. -``` - -## jQuery UI v1.14.1 - -### jQuery UI License -``` -Copyright OpenJS Foundation and other contributors, https://openjsf.org/ - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/jquery/jquery-ui - -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 contained within the demos directory. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -All files located in the node_modules and external 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. - -```