Apache License 2.0
MIT plus an explicit patent grant a NOTICE-file convention and a rule that modified files must be marked.
You may sell products that contain this code, charge for them and keep the revenue. No royalty is owed and no permission is needed.
What you can do
- sell a product that uses it
- ship it inside a closed-source product
- link or bundle it with proprietary code
What you must do
- keep the copyright and permission notice in every copy
- mark the files you changed
What you cannot do
- modify it without marking the changes
Where it fits
Corporate-friendly default when patents matter — infrastructure SDKs and anything a company may want to adopt.
The thing people get wrong
It cannot be combined with GPL-2.0 code (its patent and indemnity terms are additional restrictions) but it is fine with GPL-3.0.
Mixing it with other licences
One-way: can code under this licence live inside a project released under the licence in the table?
| Outbound licence | SPDX | Verdict |
|---|---|---|
| MIT | mit | OK |
| BSD-3 | bsd-3-clause | OK |
| ISC | isc | OK |
| MPL-2.0 | mpl-2.0 | OK |
| LGPL-3.0 | lgpl-3.0 | OK |
| GPL-2.0 | gpl-2.0 | No |
| GPL-3.0 | gpl-3.0 | OK |
| AGPL-3.0 | agpl-3.0 | OK |
| EPL-2.0 | epl-2.0 | Depends |
Full 10 × 10 matrix — read the direction of the table before quoting it
Related
Can I use it commercially?Compliance checklistApache License 2.0 vs MIT LicenseApache License 2.0 vs GNU GPL v3.0Apache License 2.0 vs GNU GPL v2.0
Questions
Can I use Apache License 2.0 commercially?
You may sell products that contain this code, charge for them and keep the revenue. No royalty is owed and no permission is needed.
Do I have to keep the copyright notice?
Keep the licence and any NOTICE file; mark files you changed; keep attribution notices; state significant changes.
Do I have to publish my changes?
No. Nothing in this licence reaches your modifications.
Is Apache License 2.0 OSI approved and FSF free?
OSI: Yes. FSF: Yes.
What do people get wrong about Apache License 2.0?
It cannot be combined with GPL-2.0 code (its patent and indemnity terms are additional restrictions) but it is fine with GPL-3.0.