SPDX Pairwise Compatibility · Both Directions

Apache-2.0 & MPL-2.0 License Compatibility

Directional engineering analysis comparing Apache License 2.0 and Mozilla Public License 2.0 across dependency linking, patent terms, and redistribution obligations.

Apache-2.0 (Dep) → MPL-2.0 (Project) COMPATIBLE

Apache-2.0 dependency is compatible with MPL-2.0

Apache-2.0 permits combining with MPL-2.0 code while preserving Apache-2.0 LICENSE/NOTICE files and patent retaliation for the Apache component.

  • Ship upstream Apache-2.0 LICENSE and NOTICE file verbatim.
  • Add prominent change notices if you modify Apache-2.0 files.
  • Keep patent-litigation retaliation risk in mind.
MPL-2.0 (Dep) → Apache-2.0 (Project) CONDITIONAL

MPL-2.0 weak file-level copyleft compatible with Apache-2.0 Larger Works

MPL-2.0 (§3.3) allows combining MPL-2.0 files with Apache-2.0 files in a Larger Work: new/external Apache-2.0 files stay Apache-2.0, while any modified MPL-2.0 files stay MPL-2.0.

  • Keep modified MPL-2.0 source files under MPL-2.0 and disclose their source code.
  • Keep your separate Apache-2.0 files distinct (do not copy-paste MPL blocks into Apache-2.0 files).
  • Include MPL-2.0 license text and notice of where MPL source can be obtained.

Side-by-Side SPDX License Obligations

Attribute Apache-2.0 MPL-2.0
Full Name Apache License 2.0 Mozilla Public License 2.0
OSI Approved Yes Yes
Copyleft Scope None (Permissive + Patent) Weak (File-level)
Patent Terms Explicit grant + patent retaliation Explicit grant + retaliation
Key Rule Permissive license with explicit patent grant, patent retaliation clause, and NOTICE preservation requirement. File-level weak copyleft allowing Larger Works with proprietary or permissive code, plus Secondary License compatibility for GPL/LGPL/AGPL.

Interactive Compatibility Explorer

Informational engineering matrix based on SPDX / FSF / OSI guidance — not formal legal advice. Consult qualified counsel for commercial license exceptions.
Apache-2.0 (Dependency) → MPL-2.0 (Project) COMPATIBLE

Apache-2.0 dependency is compatible with MPL-2.0

Apache-2.0 permits combining with MPL-2.0 code while preserving Apache-2.0 LICENSE/NOTICE files and patent retaliation for the Apache component.

Engineering Obligations & Actions
  • Ship upstream Apache-2.0 LICENSE and NOTICE file verbatim.
  • Add prominent change notices if you modify Apache-2.0 files.
  • Keep patent-litigation retaliation risk in mind.

Frequently Asked Questions

Can a MPL-2.0 project use a Apache-2.0 dependency?

COMPATIBLE: Apache-2.0 permits combining with MPL-2.0 code while preserving Apache-2.0 LICENSE/NOTICE files and patent retaliation for the Apache component.

Can a Apache-2.0 project use a MPL-2.0 dependency?

CONDITIONAL: MPL-2.0 (§3.3) allows combining MPL-2.0 files with Apache-2.0 files in a Larger Work: new/external Apache-2.0 files stay Apache-2.0, while any modified MPL-2.0 files stay MPL-2.0.

Is this matrix formal legal advice?

No. This is an informational engineering compatibility matrix based on SPDX, FSF, and OSI licensing guidance. Consult qualified legal counsel for binding commercial or dual-licensing reviews.