Skip to content

Commit 482663d

Browse files
gkdncopybara-github
authored andcommitted
Add license validation to build test script and update THIRD_PARTY_NOTICES .
PiperOrigin-RevId: 704355770
1 parent cbc1a4a commit 482663d

File tree

2 files changed

+214
-3
lines changed

2 files changed

+214
-3
lines changed

THIRD_PARTY_NOTICES

+212-2
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,217 @@ License for package(s): ['com.google.errorprone:error_prone_annotations']
445445
===============================================================================
446446
===============================================================================
447447

448-
License for package(s): ['com.google.guava:failureaccess', 'com.google.guava:guava', 'com.google.guava:guava-testlib']
448+
License for package(s): ['com.google.guava:failureaccess']
449+
450+
451+
Apache License
452+
Version 2.0, January 2004
453+
http://www.apache.org/licenses/
454+
455+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
456+
457+
1. Definitions.
458+
459+
"License" shall mean the terms and conditions for use, reproduction,
460+
and distribution as defined by Sections 1 through 9 of this document.
461+
462+
"Licensor" shall mean the copyright owner or entity authorized by
463+
the copyright owner that is granting the License.
464+
465+
"Legal Entity" shall mean the union of the acting entity and all
466+
other entities that control, are controlled by, or are under common
467+
control with that entity. For the purposes of this definition,
468+
"control" means (i) the power, direct or indirect, to cause the
469+
direction or management of such entity, whether by contract or
470+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
471+
outstanding shares, or (iii) beneficial ownership of such entity.
472+
473+
"You" (or "Your") shall mean an individual or Legal Entity
474+
exercising permissions granted by this License.
475+
476+
"Source" form shall mean the preferred form for making modifications,
477+
including but not limited to software source code, documentation
478+
source, and configuration files.
479+
480+
"Object" form shall mean any form resulting from mechanical
481+
transformation or translation of a Source form, including but
482+
not limited to compiled object code, generated documentation,
483+
and conversions to other media types.
484+
485+
"Work" shall mean the work of authorship, whether in Source or
486+
Object form, made available under the License, as indicated by a
487+
copyright notice that is included in or attached to the work
488+
(an example is provided in the Appendix below).
489+
490+
"Derivative Works" shall mean any work, whether in Source or Object
491+
form, that is based on (or derived from) the Work and for which the
492+
editorial revisions, annotations, elaborations, or other modifications
493+
represent, as a whole, an original work of authorship. For the purposes
494+
of this License, Derivative Works shall not include works that remain
495+
separable from, or merely link (or bind by name) to the interfaces of,
496+
the Work and Derivative Works thereof.
497+
498+
"Contribution" shall mean any work of authorship, including
499+
the original version of the Work and any modifications or additions
500+
to that Work or Derivative Works thereof, that is intentionally
501+
submitted to Licensor for inclusion in the Work by the copyright owner
502+
or by an individual or Legal Entity authorized to submit on behalf of
503+
the copyright owner. For the purposes of this definition, "submitted"
504+
means any form of electronic, verbal, or written communication sent
505+
to the Licensor or its representatives, including but not limited to
506+
communication on electronic mailing lists, source code control systems,
507+
and issue tracking systems that are managed by, or on behalf of, the
508+
Licensor for the purpose of discussing and improving the Work, but
509+
excluding communication that is conspicuously marked or otherwise
510+
designated in writing by the copyright owner as "Not a Contribution."
511+
512+
"Contributor" shall mean Licensor and any individual or Legal Entity
513+
on behalf of whom a Contribution has been received by Licensor and
514+
subsequently incorporated within the Work.
515+
516+
2. Grant of Copyright License. Subject to the terms and conditions of
517+
this License, each Contributor hereby grants to You a perpetual,
518+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
519+
copyright license to reproduce, prepare Derivative Works of,
520+
publicly display, publicly perform, sublicense, and distribute the
521+
Work and such Derivative Works in Source or Object form.
522+
523+
3. Grant of Patent License. Subject to the terms and conditions of
524+
this License, each Contributor hereby grants to You a perpetual,
525+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
526+
(except as stated in this section) patent license to make, have made,
527+
use, offer to sell, sell, import, and otherwise transfer the Work,
528+
where such license applies only to those patent claims licensable
529+
by such Contributor that are necessarily infringed by their
530+
Contribution(s) alone or by combination of their Contribution(s)
531+
with the Work to which such Contribution(s) was submitted. If You
532+
institute patent litigation against any entity (including a
533+
cross-claim or counterclaim in a lawsuit) alleging that the Work
534+
or a Contribution incorporated within the Work constitutes direct
535+
or contributory patent infringement, then any patent licenses
536+
granted to You under this License for that Work shall terminate
537+
as of the date such litigation is filed.
538+
539+
4. Redistribution. You may reproduce and distribute copies of the
540+
Work or Derivative Works thereof in any medium, with or without
541+
modifications, and in Source or Object form, provided that You
542+
meet the following conditions:
543+
544+
(a) You must give any other recipients of the Work or
545+
Derivative Works a copy of this License; and
546+
547+
(b) You must cause any modified files to carry prominent notices
548+
stating that You changed the files; and
549+
550+
(c) You must retain, in the Source form of any Derivative Works
551+
that You distribute, all copyright, patent, trademark, and
552+
attribution notices from the Source form of the Work,
553+
excluding those notices that do not pertain to any part of
554+
the Derivative Works; and
555+
556+
(d) If the Work includes a "NOTICE" text file as part of its
557+
distribution, then any Derivative Works that You distribute must
558+
include a readable copy of the attribution notices contained
559+
within such NOTICE file, excluding those notices that do not
560+
pertain to any part of the Derivative Works, in at least one
561+
of the following places: within a NOTICE text file distributed
562+
as part of the Derivative Works; within the Source form or
563+
documentation, if provided along with the Derivative Works; or,
564+
within a display generated by the Derivative Works, if and
565+
wherever such third-party notices normally appear. The contents
566+
of the NOTICE file are for informational purposes only and
567+
do not modify the License. You may add Your own attribution
568+
notices within Derivative Works that You distribute, alongside
569+
or as an addendum to the NOTICE text from the Work, provided
570+
that such additional attribution notices cannot be construed
571+
as modifying the License.
572+
573+
You may add Your own copyright statement to Your modifications and
574+
may provide additional or different license terms and conditions
575+
for use, reproduction, or distribution of Your modifications, or
576+
for any such Derivative Works as a whole, provided Your use,
577+
reproduction, and distribution of the Work otherwise complies with
578+
the conditions stated in this License.
579+
580+
5. Submission of Contributions. Unless You explicitly state otherwise,
581+
any Contribution intentionally submitted for inclusion in the Work
582+
by You to the Licensor shall be under the terms and conditions of
583+
this License, without any additional terms or conditions.
584+
Notwithstanding the above, nothing herein shall supersede or modify
585+
the terms of any separate license agreement you may have executed
586+
with Licensor regarding such Contributions.
587+
588+
6. Trademarks. This License does not grant permission to use the trade
589+
names, trademarks, service marks, or product names of the Licensor,
590+
except as required for reasonable and customary use in describing the
591+
origin of the Work and reproducing the content of the NOTICE file.
592+
593+
7. Disclaimer of Warranty. Unless required by applicable law or
594+
agreed to in writing, Licensor provides the Work (and each
595+
Contributor provides its Contributions) on an "AS IS" BASIS,
596+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
597+
implied, including, without limitation, any warranties or conditions
598+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
599+
PARTICULAR PURPOSE. You are solely responsible for determining the
600+
appropriateness of using or redistributing the Work and assume any
601+
risks associated with Your exercise of permissions under this License.
602+
603+
8. Limitation of Liability. In no event and under no legal theory,
604+
whether in tort (including negligence), contract, or otherwise,
605+
unless required by applicable law (such as deliberate and grossly
606+
negligent acts) or agreed to in writing, shall any Contributor be
607+
liable to You for damages, including any direct, indirect, special,
608+
incidental, or consequential damages of any character arising as a
609+
result of this License or out of the use or inability to use the
610+
Work (including but not limited to damages for loss of goodwill,
611+
work stoppage, computer failure or malfunction, or any and all
612+
other commercial damages or losses), even if such Contributor
613+
has been advised of the possibility of such damages.
614+
615+
9. Accepting Warranty or Additional Liability. While redistributing
616+
the Work or Derivative Works thereof, You may choose to offer,
617+
and charge a fee for, acceptance of support, warranty, indemnity,
618+
or other liability obligations and/or rights consistent with this
619+
License. However, in accepting such obligations, You may act only
620+
on Your own behalf and on Your sole responsibility, not on behalf
621+
of any other Contributor, and only if You agree to indemnify,
622+
defend, and hold each Contributor harmless for any liability
623+
incurred by, or claims asserted against, such Contributor by reason
624+
of your accepting any such warranty or additional liability.
625+
626+
END OF TERMS AND CONDITIONS
627+
628+
APPENDIX: How to apply the Apache License to your work.
629+
630+
To apply the Apache License to your work, attach the following
631+
boilerplate notice, with the fields enclosed by brackets "[]"
632+
replaced with your own identifying information. (Don't include
633+
the brackets!) The text should be enclosed in the appropriate
634+
comment syntax for the file format. We also recommend that a
635+
file or class name and description of purpose be included on the
636+
same "printed page" as the copyright notice for easier
637+
identification within third-party archives.
638+
639+
Copyright [yyyy] [name of copyright owner]
640+
641+
Licensed under the Apache License, Version 2.0 (the "License");
642+
you may not use this file except in compliance with the License.
643+
You may obtain a copy of the License at
644+
645+
http://www.apache.org/licenses/LICENSE-2.0
646+
647+
Unless required by applicable law or agreed to in writing, software
648+
distributed under the License is distributed on an "AS IS" BASIS,
649+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
650+
See the License for the specific language governing permissions and
651+
limitations under the License.
652+
653+
654+
===============================================================================
655+
===============================================================================
656+
===============================================================================
657+
658+
License for package(s): ['com.google.guava:guava', 'com.google.guava:guava-testlib']
449659

450660

451661
Apache License
@@ -1569,7 +1779,7 @@ License for package(s): ['org.apache.ant:ant']
15691779
* limitations under the License.
15701780
*/
15711781

1572-
W3C SOFTWARE NOTICE AND LICENSE
1782+
W3C® SOFTWARE NOTICE AND LICENSE
15731783
https://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
15741784

15751785
This work (and included software, documentation such as READMEs, or other

build_test.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ unset ANDROID_HOME
2323
bazel build :all
2424

2525
bazel test :compiler_unshaded_content_test --test_output=errors
26-
# TODO: Run other tests needed for open source verification
26+
27+
./license_check/third_party_license_test.sh

0 commit comments

Comments
 (0)