Clarification on reuse and modification of code under MPL 2.0 license

Hello to the whole Community,

I’m currently working on an adaptation/modification of the MOSIP
source code distributed under the Mozilla Public License 2.0 (MPL
2.0), and would like to confirm a few points in order to fully respect
the terms of the license.

Here is my current understanding:

  1. I am free to modify and use the code, including in a private or
    commercial project.
  2. If I modify one or more existing MPL-licensed files, I am obliged
    to publish these modified files under the same MPL 2.0 license.
  3. I am not obliged to publish the complete code of my project, only
    the original files that I have modified.
  4. If I add new files that do not include MPL code, I can place them
    under the license of my choice.
  5. I must keep the original license and copyright notices in the
    modified MPL files.

Can you confirm that this interpretation is correct, or point out any
clarifications or corrections that may be necessary?

Thank you in advance for your feedback, and congratulations on your
work on this project.

Hello! Thank you for your question regarding MPL2.0.

Your understanding of the MPL 2.0 is largely correct, and we’re happy to clarify each point:

  1. Use and Modification
    Yes, you are free to modify and use the MOSIP code, including in private or commercial projects.

  2. Obligation to Publish Modified Files
    Correct. If you modify MPL-licensed files, you must make the modified versions of those specific files available under MPL 2.0. This does not require open-sourcing your entire project.

  3. Scope of Code Disclosure
    Exactly. Only the files you modify that were originally MPL-licensed need to be published under MPL 2.0. You are not required to disclose your entire codebase.

  4. New Files
    Right. You may license new, independent files (i.e., files that do not contain MPL-covered code) under the terms of your choice.

  5. Preservation of Notices
    Yes, the original copyright and license notices must be preserved in any MPL-covered files you modify.

Best regards,
Team MOSIP

1 Like