If you're creating free software, you have several open-source licenses to choose from, each with its own conditions and implications. Choosing the right license depends on how you want others to use your software and what kinds of freedoms or restrictions you want to enforce. Some of the most common free software licenses include:
-
MIT License: A permissive, lenient license that allows people to do almost anything they want with your code, including making and distributing closed source versions, as long as they provide attribution back to you.
-
GNU General Public License (GPL): A copyleft license that requires derivatives of your code to be released under the same GPL license. This ensures that the software and any modifications remain free.
- GPLv2: The second version of the GPL. It doesn't include any specific provisions for patent licenses.
- GPLv3: A later revision that includes terms to prevent patent treachery against users and to make the license compatible with more international laws.
-
Apache License 2.0: A permissive license that also provides an express grant of patent rights from contributors to users.
-
BSD licenses: There are two main types, the 2-clause license and the 3-clause license. Both are permissive licenses with minimal restrictions on how your software can be redistributed.
- The 2-clause (FreeBSD) license: Allows others to use and modify your code for any purpose, as long as they include the original copyright notice.
- The 3-clause (New BSD) license: Similar to the 2-clause license but also prohibits others from using your name or the names of your project contributors to promote derived products.
-
Mozilla Public License (MPL) 2.0: A weaker form of copyleft that allows files covered by the MPL to be mixed with files under other licenses (including proprietary ones), as long as the files that are originally MPL-licensed remain so.
-
GNU Lesser General Public License (LGPL): Similar to the GPL, but with a provision that allows developers to link to libraries that are covered under the LGPL without the need to open their own code.
-
Creative Commons Zero (CC0): A public domain dedication that allows you to waive all interests in the work and allow it to be used for any purpose without any conditions, although such waivers may not always be effective in every jurisdiction.
These are just a few options of the many licenses available. Your decision should be based on how you want your software to be used and shared. If you want maximum freedom for users, choose a permissive license like MIT or BSD. If you insist on preserving free software status of derivative works, consider a copyleft license like the GPL or MPL.
Before you make a decision, it's a good idea to read through the full text of the licenses you're considering. You should also consider getting legal advice, especially if the software is complex or has potential commercial applications.