SPDX Pairwise Compatibility · Both Directions

MPL-2.0 & GPL-3.0-only License Compatibility

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

MPL-2.0 (Dep) → GPL-3.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-3.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-3.0-only.
GPL-3.0-only (Dep) → MPL-2.0 (Project) INCOMPATIBLE

GPL-3.0-only dependency cannot be shipped under MPL-2.0

GPL-3.0-only is strong copyleft: distributing a combined work containing a GPL-3.0-only dependency requires licensing the entire combined work under GPL-3.0-only (or AGPL-3.0-only), incompatible with MPL-2.0.

  • Do not bundle GPL-3.0-only dependencies inside a MPL-2.0 release.
  • Replace the dependency or relicense the combined application under GPL-3.0-only.

Side-by-Side SPDX License Obligations

Attribute MPL-2.0 GPL-3.0-only
Full Name Mozilla Public License 2.0 GNU GPL v3.0 only
OSI Approved Yes Yes
Copyleft Scope Weak (File-level) Strong (Combined work)
Patent Terms Explicit grant + retaliation Explicit grant + anti-Tivoization
Key Rule File-level weak copyleft allowing Larger Works with proprietary or permissive code, plus Secondary License compatibility for GPL/LGPL/AGPL. Modern strong copyleft adding explicit patent terms, anti-Tivoization installation info, and Apache-2.0 / AGPL-3.0 compatibility.

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-3.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-3.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-3.0-only.

Frequently Asked Questions

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

COMPATIBLE: MPL-2.0 automatically permits creating a Larger Work distributed under GPL-3.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-3.0-only dependency?

INCOMPATIBLE: GPL-3.0-only is strong copyleft: distributing a combined work containing a GPL-3.0-only dependency requires licensing the entire combined work under GPL-3.0-only (or AGPL-3.0-only), incompatible 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.