I have built a framework that has the core modules: module1, module2, module3, module4.

But I have also build module5 that uses the core modules and also derives classes from the module1. I want module5 to make it proprietary and sell it as binaries and keep the the ownership of the code for module5. The rest of the 4 core modules can be open source.

Can this be done with Mozilla Public License? Or is there a better license for what I want?

1 Answer 1


This can surely be done with the MPL license. At a high level, the MPL is a weak, limited copyleft where the copyleft applies on a per-file basis.

The specific section that would allow your use case is "3.3. Distribution of a Larger Work":

You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.