SPDX Pairwise Compatibility · Both Directions

MPL-2.0 & GPL-2.0-only License Compatibility

Directional engineering analysis comparing Mozilla Public License 2.0 and GNU GPL v2.0 only across dependency linking, patent terms, and redistribution obligations.

MPL-2.0 (Dep) → GPL-2.0-only (Project) COMPATIBLE

Compatible via MPL-2.0 §3.3 Secondary License clause (unless explicitly excluded)

MPL-2.0 automatically permits creating a Larger Work distributed under GPL-2.0-only via its Secondary License clause (§3.3), unless the upstream repo carries Exhibit B ("Incompatible With Secondary Licenses").

  • Inspect upstream MPL-2.0 file headers for Exhibit B (Incompatible With Secondary Licenses).
  • Keep MPL-2.0 files available under MPL-2.0 as well as the Secondary License.
  • Distribute the combined Larger Work under GPL-2.0-only.
GPL-2.0-only (Dep) → MPL-2.0 (Project) INCOMPATIBLE

GPL-2.0-only dependency cannot be used inside a MPL-2.0 project

GPL-2.0-only is strong copyleft: linking a GPL-2.0-only dependency forces the entire combined distributed work to be licensed strictly under GPL-2.0-only, conflicting with MPL-2.0.

  • Do not link GPL-2.0-only libraries inside a MPL-2.0 distribution.
  • Verify whether upstream actually licensed under GPL-2.0-or-later or replace the dependency.

Side-by-Side SPDX License Obligations

Attribute MPL-2.0 GPL-2.0-only
Full Name Mozilla Public License 2.0 GNU GPL v2.0 only
OSI Approved Yes Yes
Copyleft Scope Weak (File-level) Strong (Combined work)
Patent Terms Explicit grant + retaliation Implicit only (§7 liberty-or-death)
Key Rule File-level weak copyleft allowing Larger Works with proprietary or permissive code, plus Secondary License compatibility for GPL/LGPL/AGPL. Classic strong copyleft license requiring derivative and statically/dynamically linked works to be distributed strictly under GPL-2.0-only.

Interactive Compatibility Explorer

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

Compatible via MPL-2.0 §3.3 Secondary License clause (unless explicitly excluded)

MPL-2.0 automatically permits creating a Larger Work distributed under GPL-2.0-only via its Secondary License clause (§3.3), unless the upstream repo carries Exhibit B ("Incompatible With Secondary Licenses").

Engineering Obligations & Actions
  • Inspect upstream MPL-2.0 file headers for Exhibit B (Incompatible With Secondary Licenses).
  • Keep MPL-2.0 files available under MPL-2.0 as well as the Secondary License.
  • Distribute the combined Larger Work under GPL-2.0-only.

Frequently Asked Questions

Can a GPL-2.0-only project use a MPL-2.0 dependency?

COMPATIBLE: MPL-2.0 automatically permits creating a Larger Work distributed under GPL-2.0-only via its Secondary License clause (§3.3), unless the upstream repo carries Exhibit B ("Incompatible With Secondary Licenses").

Can a MPL-2.0 project use a GPL-2.0-only dependency?

INCOMPATIBLE: GPL-2.0-only is strong copyleft: linking a GPL-2.0-only dependency forces the entire combined distributed work to be licensed strictly under GPL-2.0-only, conflicting with 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.