Permissive

Apache License 2.0

A permissive license with an express patent grant and rules for NOTICE files and marking changes. Especially common in corporate projects.

SPDXApache-2.0

Permissions, conditions and limitations at a glance

Permissions

  • Commercial useThe software and derivatives may be used for commercial purposes.
  • ModificationThe software may be modified.
  • DistributionThe software may be distributed.
  • Patent useContributors expressly grant patent rights.
  • Private useThe software may be used and modified privately without publishing it.

Conditions

  • License and copyright noticeA copy of the license and the copyright notice must be included when distributing.
  • State changesChanges made to the original must be indicated.

Limitations

  • Trademark useExpressly states that no trademark rights are granted.
  • LiabilityExpressly states that there is no liability for damages.
  • WarrantyExpressly states that no warranty is provided.

Permissions, conditions and limitations are classified using data from choosealicense.com (GitHub, MIT License).

What kind of license is it?

The Apache License 2.0 is a permissive license published by the Apache Software Foundation (ASF) in 2004. Like MIT, it broadly permits commercial use, modification and redistribution, but its text is longer and its clauses more specific. Its defining feature is Section 3, in which contributors expressly grant patent rights. If someone files a patent lawsuit claiming the software infringes their patent, the patent license they received terminates as of the date the litigation is filed (patent retaliation clause). Kubernetes, TensorFlow, much of the Android Open Source Project (AOSP) and every Apache Foundation project use this license.

What you must do when distributing (Section 4)

How to apply it

Put the text unchanged in the LICENSE file. The "APPENDIX" at the end of the text is guidance on how to apply the license and does not need to be deleted. Put your copyright notice in the notice at the top of each source file (the generator's "File header" tab → official notice) or in a NOTICE file. NOTICE is not mandatory, and the ASF recommends keeping it short, containing only legally required attribution notices.

Common misconceptions

When it fits

It suits cross-company collaborative projects, patent-heavy fields (machine learning, cloud, telecommunications, etc.) and large projects with many contributors. Being permissive, it is easy to include in commercial products while reducing the risk of patent disputes. If the code is likely to be used together with GPL-2.0 projects, consider MIT or MIT OR Apache-2.0 dual licensing.

Can Apache-2.0 code go into another project?

General verdicts for taking code released under this license and distributing it combined into a project under each license below. See other combinations in the compatibility checker →

Target projectVerdictNotes
Proprietary (closed-source) software AllowedKeep the LICENSE copy and the copyright and NOTICE content, and mark modified files as changed.
MIT AllowedKeep the LICENSE copy and the copyright and NOTICE content, and mark modified files as changed.
MPL-2.0 AllowedKeep the LICENSE copy and the copyright and NOTICE content, and mark modified files as changed.
LGPL-2.1 Not allowedThe FSF considers Apache-2.0's patent termination and indemnification clauses to be additional restrictions not found in GPL-2.0, so it is not compatible with GPL-2.0 (only).
LGPL-3.0 AllowedKeep the LICENSE copy and the copyright and NOTICE content, and mark modified files as changed.
GPL-2.0 Not allowedThe FSF considers Apache-2.0's patent termination and indemnification clauses to be additional restrictions not found in GPL-2.0, so it is not compatible with GPL-2.0 (only).
GPL-3.0 AllowedKeep the LICENSE copy and the copyright and NOTICE content, and mark modified files as changed.
AGPL-3.0 AllowedKeep the LICENSE copy and the copyright and NOTICE content, and mark modified files as changed.

The content on this site is general information, not legal advice. For actual distribution, contracts or disputes, consult a lawyer or other qualified professional.