xref: /aosp_15_r20/external/bazelbuild-kotlin-rules/LICENSE (revision 3a22c0a33dd99bcca39a024d43e6fbcc55c2806e)
1*3a22c0a3SAlix
2*3a22c0a3SAlix                                 Apache License
3*3a22c0a3SAlix                           Version 2.0, January 2004
4*3a22c0a3SAlix                        http://www.apache.org/licenses/
5*3a22c0a3SAlix
6*3a22c0a3SAlix   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7*3a22c0a3SAlix
8*3a22c0a3SAlix   1. Definitions.
9*3a22c0a3SAlix
10*3a22c0a3SAlix      "License" shall mean the terms and conditions for use, reproduction,
11*3a22c0a3SAlix      and distribution as defined by Sections 1 through 9 of this document.
12*3a22c0a3SAlix
13*3a22c0a3SAlix      "Licensor" shall mean the copyright owner or entity authorized by
14*3a22c0a3SAlix      the copyright owner that is granting the License.
15*3a22c0a3SAlix
16*3a22c0a3SAlix      "Legal Entity" shall mean the union of the acting entity and all
17*3a22c0a3SAlix      other entities that control, are controlled by, or are under common
18*3a22c0a3SAlix      control with that entity. For the purposes of this definition,
19*3a22c0a3SAlix      "control" means (i) the power, direct or indirect, to cause the
20*3a22c0a3SAlix      direction or management of such entity, whether by contract or
21*3a22c0a3SAlix      otherwise, or (ii) ownership of fifty percent (50%) or more of the
22*3a22c0a3SAlix      outstanding shares, or (iii) beneficial ownership of such entity.
23*3a22c0a3SAlix
24*3a22c0a3SAlix      "You" (or "Your") shall mean an individual or Legal Entity
25*3a22c0a3SAlix      exercising permissions granted by this License.
26*3a22c0a3SAlix
27*3a22c0a3SAlix      "Source" form shall mean the preferred form for making modifications,
28*3a22c0a3SAlix      including but not limited to software source code, documentation
29*3a22c0a3SAlix      source, and configuration files.
30*3a22c0a3SAlix
31*3a22c0a3SAlix      "Object" form shall mean any form resulting from mechanical
32*3a22c0a3SAlix      transformation or translation of a Source form, including but
33*3a22c0a3SAlix      not limited to compiled object code, generated documentation,
34*3a22c0a3SAlix      and conversions to other media types.
35*3a22c0a3SAlix
36*3a22c0a3SAlix      "Work" shall mean the work of authorship, whether in Source or
37*3a22c0a3SAlix      Object form, made available under the License, as indicated by a
38*3a22c0a3SAlix      copyright notice that is included in or attached to the work
39*3a22c0a3SAlix      (an example is provided in the Appendix below).
40*3a22c0a3SAlix
41*3a22c0a3SAlix      "Derivative Works" shall mean any work, whether in Source or Object
42*3a22c0a3SAlix      form, that is based on (or derived from) the Work and for which the
43*3a22c0a3SAlix      editorial revisions, annotations, elaborations, or other modifications
44*3a22c0a3SAlix      represent, as a whole, an original work of authorship. For the purposes
45*3a22c0a3SAlix      of this License, Derivative Works shall not include works that remain
46*3a22c0a3SAlix      separable from, or merely link (or bind by name) to the interfaces of,
47*3a22c0a3SAlix      the Work and Derivative Works thereof.
48*3a22c0a3SAlix
49*3a22c0a3SAlix      "Contribution" shall mean any work of authorship, including
50*3a22c0a3SAlix      the original version of the Work and any modifications or additions
51*3a22c0a3SAlix      to that Work or Derivative Works thereof, that is intentionally
52*3a22c0a3SAlix      submitted to Licensor for inclusion in the Work by the copyright owner
53*3a22c0a3SAlix      or by an individual or Legal Entity authorized to submit on behalf of
54*3a22c0a3SAlix      the copyright owner. For the purposes of this definition, "submitted"
55*3a22c0a3SAlix      means any form of electronic, verbal, or written communication sent
56*3a22c0a3SAlix      to the Licensor or its representatives, including but not limited to
57*3a22c0a3SAlix      communication on electronic mailing lists, source code control systems,
58*3a22c0a3SAlix      and issue tracking systems that are managed by, or on behalf of, the
59*3a22c0a3SAlix      Licensor for the purpose of discussing and improving the Work, but
60*3a22c0a3SAlix      excluding communication that is conspicuously marked or otherwise
61*3a22c0a3SAlix      designated in writing by the copyright owner as "Not a Contribution."
62*3a22c0a3SAlix
63*3a22c0a3SAlix      "Contributor" shall mean Licensor and any individual or Legal Entity
64*3a22c0a3SAlix      on behalf of whom a Contribution has been received by Licensor and
65*3a22c0a3SAlix      subsequently incorporated within the Work.
66*3a22c0a3SAlix
67*3a22c0a3SAlix   2. Grant of Copyright License. Subject to the terms and conditions of
68*3a22c0a3SAlix      this License, each Contributor hereby grants to You a perpetual,
69*3a22c0a3SAlix      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70*3a22c0a3SAlix      copyright license to reproduce, prepare Derivative Works of,
71*3a22c0a3SAlix      publicly display, publicly perform, sublicense, and distribute the
72*3a22c0a3SAlix      Work and such Derivative Works in Source or Object form.
73*3a22c0a3SAlix
74*3a22c0a3SAlix   3. Grant of Patent License. Subject to the terms and conditions of
75*3a22c0a3SAlix      this License, each Contributor hereby grants to You a perpetual,
76*3a22c0a3SAlix      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77*3a22c0a3SAlix      (except as stated in this section) patent license to make, have made,
78*3a22c0a3SAlix      use, offer to sell, sell, import, and otherwise transfer the Work,
79*3a22c0a3SAlix      where such license applies only to those patent claims licensable
80*3a22c0a3SAlix      by such Contributor that are necessarily infringed by their
81*3a22c0a3SAlix      Contribution(s) alone or by combination of their Contribution(s)
82*3a22c0a3SAlix      with the Work to which such Contribution(s) was submitted. If You
83*3a22c0a3SAlix      institute patent litigation against any entity (including a
84*3a22c0a3SAlix      cross-claim or counterclaim in a lawsuit) alleging that the Work
85*3a22c0a3SAlix      or a Contribution incorporated within the Work constitutes direct
86*3a22c0a3SAlix      or contributory patent infringement, then any patent licenses
87*3a22c0a3SAlix      granted to You under this License for that Work shall terminate
88*3a22c0a3SAlix      as of the date such litigation is filed.
89*3a22c0a3SAlix
90*3a22c0a3SAlix   4. Redistribution. You may reproduce and distribute copies of the
91*3a22c0a3SAlix      Work or Derivative Works thereof in any medium, with or without
92*3a22c0a3SAlix      modifications, and in Source or Object form, provided that You
93*3a22c0a3SAlix      meet the following conditions:
94*3a22c0a3SAlix
95*3a22c0a3SAlix      (a) You must give any other recipients of the Work or
96*3a22c0a3SAlix          Derivative Works a copy of this License; and
97*3a22c0a3SAlix
98*3a22c0a3SAlix      (b) You must cause any modified files to carry prominent notices
99*3a22c0a3SAlix          stating that You changed the files; and
100*3a22c0a3SAlix
101*3a22c0a3SAlix      (c) You must retain, in the Source form of any Derivative Works
102*3a22c0a3SAlix          that You distribute, all copyright, patent, trademark, and
103*3a22c0a3SAlix          attribution notices from the Source form of the Work,
104*3a22c0a3SAlix          excluding those notices that do not pertain to any part of
105*3a22c0a3SAlix          the Derivative Works; and
106*3a22c0a3SAlix
107*3a22c0a3SAlix      (d) If the Work includes a "NOTICE" text file as part of its
108*3a22c0a3SAlix          distribution, then any Derivative Works that You distribute must
109*3a22c0a3SAlix          include a readable copy of the attribution notices contained
110*3a22c0a3SAlix          within such NOTICE file, excluding those notices that do not
111*3a22c0a3SAlix          pertain to any part of the Derivative Works, in at least one
112*3a22c0a3SAlix          of the following places: within a NOTICE text file distributed
113*3a22c0a3SAlix          as part of the Derivative Works; within the Source form or
114*3a22c0a3SAlix          documentation, if provided along with the Derivative Works; or,
115*3a22c0a3SAlix          within a display generated by the Derivative Works, if and
116*3a22c0a3SAlix          wherever such third-party notices normally appear. The contents
117*3a22c0a3SAlix          of the NOTICE file are for informational purposes only and
118*3a22c0a3SAlix          do not modify the License. You may add Your own attribution
119*3a22c0a3SAlix          notices within Derivative Works that You distribute, alongside
120*3a22c0a3SAlix          or as an addendum to the NOTICE text from the Work, provided
121*3a22c0a3SAlix          that such additional attribution notices cannot be construed
122*3a22c0a3SAlix          as modifying the License.
123*3a22c0a3SAlix
124*3a22c0a3SAlix      You may add Your own copyright statement to Your modifications and
125*3a22c0a3SAlix      may provide additional or different license terms and conditions
126*3a22c0a3SAlix      for use, reproduction, or distribution of Your modifications, or
127*3a22c0a3SAlix      for any such Derivative Works as a whole, provided Your use,
128*3a22c0a3SAlix      reproduction, and distribution of the Work otherwise complies with
129*3a22c0a3SAlix      the conditions stated in this License.
130*3a22c0a3SAlix
131*3a22c0a3SAlix   5. Submission of Contributions. Unless You explicitly state otherwise,
132*3a22c0a3SAlix      any Contribution intentionally submitted for inclusion in the Work
133*3a22c0a3SAlix      by You to the Licensor shall be under the terms and conditions of
134*3a22c0a3SAlix      this License, without any additional terms or conditions.
135*3a22c0a3SAlix      Notwithstanding the above, nothing herein shall supersede or modify
136*3a22c0a3SAlix      the terms of any separate license agreement you may have executed
137*3a22c0a3SAlix      with Licensor regarding such Contributions.
138*3a22c0a3SAlix
139*3a22c0a3SAlix   6. Trademarks. This License does not grant permission to use the trade
140*3a22c0a3SAlix      names, trademarks, service marks, or product names of the Licensor,
141*3a22c0a3SAlix      except as required for reasonable and customary use in describing the
142*3a22c0a3SAlix      origin of the Work and reproducing the content of the NOTICE file.
143*3a22c0a3SAlix
144*3a22c0a3SAlix   7. Disclaimer of Warranty. Unless required by applicable law or
145*3a22c0a3SAlix      agreed to in writing, Licensor provides the Work (and each
146*3a22c0a3SAlix      Contributor provides its Contributions) on an "AS IS" BASIS,
147*3a22c0a3SAlix      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148*3a22c0a3SAlix      implied, including, without limitation, any warranties or conditions
149*3a22c0a3SAlix      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150*3a22c0a3SAlix      PARTICULAR PURPOSE. You are solely responsible for determining the
151*3a22c0a3SAlix      appropriateness of using or redistributing the Work and assume any
152*3a22c0a3SAlix      risks associated with Your exercise of permissions under this License.
153*3a22c0a3SAlix
154*3a22c0a3SAlix   8. Limitation of Liability. In no event and under no legal theory,
155*3a22c0a3SAlix      whether in tort (including negligence), contract, or otherwise,
156*3a22c0a3SAlix      unless required by applicable law (such as deliberate and grossly
157*3a22c0a3SAlix      negligent acts) or agreed to in writing, shall any Contributor be
158*3a22c0a3SAlix      liable to You for damages, including any direct, indirect, special,
159*3a22c0a3SAlix      incidental, or consequential damages of any character arising as a
160*3a22c0a3SAlix      result of this License or out of the use or inability to use the
161*3a22c0a3SAlix      Work (including but not limited to damages for loss of goodwill,
162*3a22c0a3SAlix      work stoppage, computer failure or malfunction, or any and all
163*3a22c0a3SAlix      other commercial damages or losses), even if such Contributor
164*3a22c0a3SAlix      has been advised of the possibility of such damages.
165*3a22c0a3SAlix
166*3a22c0a3SAlix   9. Accepting Warranty or Additional Liability. While redistributing
167*3a22c0a3SAlix      the Work or Derivative Works thereof, You may choose to offer,
168*3a22c0a3SAlix      and charge a fee for, acceptance of support, warranty, indemnity,
169*3a22c0a3SAlix      or other liability obligations and/or rights consistent with this
170*3a22c0a3SAlix      License. However, in accepting such obligations, You may act only
171*3a22c0a3SAlix      on Your own behalf and on Your sole responsibility, not on behalf
172*3a22c0a3SAlix      of any other Contributor, and only if You agree to indemnify,
173*3a22c0a3SAlix      defend, and hold each Contributor harmless for any liability
174*3a22c0a3SAlix      incurred by, or claims asserted against, such Contributor by reason
175*3a22c0a3SAlix      of your accepting any such warranty or additional liability.
176*3a22c0a3SAlix
177*3a22c0a3SAlix   END OF TERMS AND CONDITIONS
178*3a22c0a3SAlix
179*3a22c0a3SAlix   APPENDIX: How to apply the Apache License to your work.
180*3a22c0a3SAlix
181*3a22c0a3SAlix      To apply the Apache License to your work, attach the following
182*3a22c0a3SAlix      boilerplate notice, with the fields enclosed by brackets "[]"
183*3a22c0a3SAlix      replaced with your own identifying information. (Don't include
184*3a22c0a3SAlix      the brackets!)  The text should be enclosed in the appropriate
185*3a22c0a3SAlix      comment syntax for the file format. We also recommend that a
186*3a22c0a3SAlix      file or class name and description of purpose be included on the
187*3a22c0a3SAlix      same "printed page" as the copyright notice for easier
188*3a22c0a3SAlix      identification within third-party archives.
189*3a22c0a3SAlix
190*3a22c0a3SAlix   Copyright [yyyy] [name of copyright owner]
191*3a22c0a3SAlix
192*3a22c0a3SAlix   Licensed under the Apache License, Version 2.0 (the "License");
193*3a22c0a3SAlix   you may not use this file except in compliance with the License.
194*3a22c0a3SAlix   You may obtain a copy of the License at
195*3a22c0a3SAlix
196*3a22c0a3SAlix       http://www.apache.org/licenses/LICENSE-2.0
197*3a22c0a3SAlix
198*3a22c0a3SAlix   Unless required by applicable law or agreed to in writing, software
199*3a22c0a3SAlix   distributed under the License is distributed on an "AS IS" BASIS,
200*3a22c0a3SAlix   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201*3a22c0a3SAlix   See the License for the specific language governing permissions and
202*3a22c0a3SAlix   limitations under the License.
203